]> git.ipfire.org Git - thirdparty/git.git/commit
object-name: fix leaking symlink paths in object context
authorPatrick Steinhardt <ps@pks.im>
Wed, 14 Aug 2024 06:52:00 +0000 (08:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Aug 2024 17:07:57 +0000 (10:07 -0700)
commit9ddd5f755d78dd2a3119b63d5f78ca93e4fd3eba
tree725b5cc5d4548a6b251771eeea06fb87be24e1c9
parentaa9ef614dc281d123e8f18d19c9abecf82295c0e
object-name: fix leaking symlink paths in object context

The object context may be populated with symlink contents when reading a
symlink, but the associated strbuf doesn't ever get released when
releasing the object context, causing a memory leak. Plug it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-name.c
t/t1006-cat-file.sh