ソースを参照

[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);

読み込み中…
キャンセル
保存