]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/format-patch: fix various trivial memory leaks
authorPatrick Steinhardt <ps@pks.im>
Wed, 14 Aug 2024 06:52:44 +0000 (08:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Aug 2024 17:08:01 +0000 (10:08 -0700)
commit1bc158e7509851d9cb007273c9f75a238f295d2e
tree8c9cf57159d2c1077c6c68afec114fa16e1cd59e
parent6b15d9ca7f555b7366ed810e2334d614b96361ad
builtin/format-patch: fix various trivial memory leaks

There are various memory leaks hit by git-format-patch(1). Basically all
of them are trivial, except that un-setting `diffopt.no_free` requires
us to unset the `diffopt.file` because we manually close it already.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
t/t4014-format-patch.sh