瀏覽代碼

[Fix] Libucl: avoid memory leak on objects merging

tags/3.3
Vsevolod Stakhov 1 年之前
父節點
當前提交
1d14bc6468
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      contrib/libucl/ucl_util.c

+ 2
- 0
contrib/libucl/ucl_util.c 查看文件

@@ -2604,6 +2604,7 @@ ucl_object_merge (ucl_object_t *top, ucl_object_t *elt, bool copy)
if (!ucl_object_merge (found, cp, copy)) {
return false;
}
ucl_object_unref (cp);
}
else {
ucl_hash_replace (top->value.ov, found, cp);
@@ -2635,6 +2636,7 @@ ucl_object_merge (ucl_object_t *top, ucl_object_t *elt, bool copy)
if (!ucl_object_merge (found, cp, copy)) {
return false;
}
ucl_object_unref (cp);
}
else {
ucl_hash_replace (top->value.ov, found, cp);

Loading…
取消
儲存