transport-helper: fix leaking import/export marks
Fix leaking import and export marks for transport helpers. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
6ef9f77a15
commit
1a99173de0
|
@ -8,6 +8,7 @@ test_description='Test remote-helper import and export commands'
|
|||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-gpg.sh
|
||||
|
||||
|
|
|
@ -399,6 +399,8 @@ static int release_helper(struct transport *transport)
|
|||
int res = 0;
|
||||
struct helper_data *data = transport->data;
|
||||
refspec_clear(&data->rs);
|
||||
free(data->import_marks);
|
||||
free(data->export_marks);
|
||||
res = disconnect_helper(transport);
|
||||
free(transport->data);
|
||||
return res;
|
||||
|
|
Loading…
Reference in New Issue