Skip to content

Commit

Permalink
ucode-mod-pkgen: fix refcounting issue
Browse files Browse the repository at this point in the history
Do not call ucv_get if the reference is transferred without being used
elsewhere

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Mar 5, 2025
1 parent 12298ca commit 4d4e631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/utils/ucode-mod-pkgen/src/ucode.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ uc_cert_info(uc_vm_t *vm, size_t nargs)
uc_value_t *info = ucv_object_new(vm);
int len;

ucv_array_push(ret, ucv_get(info));
ucv_array_push(ret, info);
ucv_object_add(info, "version", ucv_int64_new(cur->version));

uc_cert_info_add_name(info, "issuer", &cur->issuer);
Expand Down

0 comments on commit 4d4e631

Please sign in to comment.