diff options
author | Lidong Yan <502024330056@smail.nju.edu.cn> | 2025-05-12 12:49:03 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-05-12 09:19:49 -0700 |
commit | c8e752eaeff299012b582507fed078a7cecbb7a3 (patch) | |
tree | 193b8f19b86c998591fae908aeabfb878ce5833a /builtin/commit-graph.c | |
parent | d50a5e8939abfc07c2ff97ae72e9330939b36ee0 (diff) |
reftable/writer: fix memory leak when `padded_write()` fails
In reftable/writer.c:padded_write(), if w->writer failed, zeroed
allocated in `reftable_calloc` will leak. w->writer could be
`reftable_write_data` in reftable/stack.c, and could fail due to
some write error. Simply add reftable_free(zeroed) 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