summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorLidong Yan <502024330056@smail.nju.edu.cn>2025-05-12 12:49:04 +0000
committerJunio C Hamano <gitster@pobox.com>2025-05-12 09:19:50 -0700
commit91db6c735dd1da215ae5e12506139f0aba5e426b (patch)
tree0134752d8016bcbe6cb3fa394b8c92814bda0a41 /builtin/commit-graph.c
parentc8e752eaeff299012b582507fed078a7cecbb7a3 (diff)
reftable/writer: fix memory leak when `writer_index_hash()` fails
In reftable/writer.c:writer_index_hash(), if `reftable_buf_add` failed, key allocated by `reftable_malloc` will not be insert into `obj_index_tree` thus leaks. Simple add reftable_free(key) will solve this problem. Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions