]> git.ipfire.org Git - thirdparty/git.git/commit
line-log: fix several memory leaks
authorPatrick Steinhardt <ps@pks.im>
Mon, 30 Sep 2024 09:13:48 +0000 (11:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Sep 2024 18:23:06 +0000 (11:23 -0700)
commit5ce08ed4fbb60c984f46632aaa30d8f781e57e56
tree49560138d195c21d805fff67ca34cb085d8d1c36
parenta5aecb2cdc8c5f2c1501bdbe30c02959948d8442
line-log: fix several memory leaks

As described in "line-log.c" itself, the code is "leaking like a sieve".
These leaks are all of rather trivial nature, so this commit plugs them
without going too much into details for each of those leaks.

The leaks are hit by t4211, but plugging them alone does not make the
full test suite pass. The remaining leaks are unrelated to the line-log
subsystem.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
line-log.c