mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-06 05:42:27 +00:00
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:
parent
12298ca7c4
commit
4d4e631267
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user