ucode-mod-pkgen: fix refcounting issue

Do not call ucv_get if the reference is transferred without being used
elsewhere

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau committed 2025-03-05 08:25:43 +01:00
1 parent 12298ca7c4
commit 4d4e631267
1 file changed
+1 -1
+1 -1
View File
@@ -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);