diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-05 12:09:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-05 08:49:12 -0700 |
commit | 860b6780163ade3bb705d6565619ec13efcc77c6 (patch) | |
tree | e0dd948ebe83aff428f88331062d3c449b448e5b /commit.c | |
parent | a46f231975f4c7ac94af0847f4b3bb8b11493d80 (diff) |
builtin/repack: fix leaking line buffer when packing promisors
In `repack_promisor_objects()` we read output from git-pack-objects(1)
line by line, using `strbuf_getline_lf()`. We never free the line
buffer, causing a memory leak. Plug it.
This leak is being hit in t5616, but plugging it alone is not
sufficient to make the whole test suite leak free.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions