]> git.ipfire.org Git - thirdparty/git.git/commit
receive-pack: release the linked "struct command *" list
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 6 Feb 2023 23:07:52 +0000 (00:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Feb 2023 23:34:40 +0000 (15:34 -0800)
commit1fdd31cf52a242c3b73b4093a68a30123c5c7549
tree63b04faafec25668a818e266e068833b117d54d1
parentfb2ebe72a37423e7c375d933d3c277b8cc81efba
receive-pack: release the linked "struct command *" list

Fix a memory leak that's been with us since this code was introduced
in [1]. Later in [2] we started using FLEX_ALLOC_MEM() to allocate the
"struct command *".

1. 575f497456e (Add first cut at "git-receive-pack", 2005-06-29)
2. eb1af2df0b1 (git-receive-pack: start parsing ref update commands,
   2005-06-29)

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
t/t5405-send-pack-rewind.sh
t/t5406-remote-rejects.sh
t/t5507-remote-environment.sh
t/t5522-pull-symlink.sh
t/t5527-fetch-odd-refs.sh
t/t5560-http-backend-noserver.sh
t/t5561-http-backend.sh
t/t5562-http-backend-content-length.sh
t/t5705-session-id-in-capabilities.sh