builtin/send-pack: fix leaking list of push options
The list of push options is leaking. Plug the leak. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a6c30623d7
commit
66893a14d0
@ -340,6 +340,7 @@ int cmd_send_pack(int argc,
|
|||||||
/* stable plumbing output; do not modify or localize */
|
/* stable plumbing output; do not modify or localize */
|
||||||
fprintf(stderr, "Everything up-to-date\n");
|
fprintf(stderr, "Everything up-to-date\n");
|
||||||
|
|
||||||
|
string_list_clear(&push_options, 0);
|
||||||
free_refs(remote_refs);
|
free_refs(remote_refs);
|
||||||
free_refs(local_refs);
|
free_refs(local_refs);
|
||||||
refspec_clear(&rs);
|
refspec_clear(&rs);
|
||||||
|
@ -8,6 +8,7 @@ test_description='Test proc-receive hook'
|
|||||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
. "$TEST_DIRECTORY"/t5411/common-functions.sh
|
. "$TEST_DIRECTORY"/t5411/common-functions.sh
|
||||||
|
@ -8,6 +8,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
|||||||
GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB=1
|
GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB=1
|
||||||
export GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB
|
export GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB
|
||||||
|
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
mk_repo_pair () {
|
mk_repo_pair () {
|
||||||
|
Reference in New Issue
Block a user