소스 검색

[Fix] Libucl: avoid memory leak on objects merging

tags/3.3
Vsevolod Stakhov 1 년 전
부모
커밋
1d14bc6468
No account linked to committer's email address
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…
취소
저장