]> git.ipfire.org Git - thirdparty/git.git/commit
convert: fix leaks when resetting attributes
authorPatrick Steinhardt <ps@pks.im>
Thu, 22 Aug 2024 09:17:13 +0000 (11:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 16:18:03 +0000 (09:18 -0700)
commit643c6f576cb7b0a7e2345cd4f8e8d7468fefc483
treefe1007ecd39a7ead4c4dd0352f61c9cf6b37803c
parente5530f9c5c011125420bb6416f9ba519082e98b6
convert: fix leaks when resetting attributes

When resetting parsed gitattributes, we free the list of convert drivers
parsed from the config. We only free some of the drivers' fields though
and thus have memory leaks.

Fix this by freeing all allocated convert driver fields to plug these
memory leaks.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
t/t4150-am.sh