]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/send-pack: fix leaking refspecs
authorPatrick Steinhardt <ps@pks.im>
Thu, 22 Aug 2024 09:17:46 +0000 (11:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 16:18:05 +0000 (09:18 -0700)
commita09efb74e3d3b316519a398618fb6515df4337a7
treed20e7b549ae721719a72394788f04aae11f498fc
parentca522341831ad223187fe67b80ad87ad6efe4497
builtin/send-pack: fix leaking refspecs

We never free data associated with the assembled refspec in
git-send-pack(1), causing a memory leak. Fix this.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/send-pack.c
t/t5400-send-pack.sh
t/t5401-update-hooks.sh
t/t5408-send-pack-stdin.sh
t/t5548-push-porcelain.sh
t/t5812-proto-disable-http.sh