mirror of
https://github.com/git/git.git
synced 2026-01-11 21:33:13 +09:00
builtin/shortlog: fix various trivial memory leaks
There is a trivial memory leak in git-shortlog(1). Fix it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
50ef4e09c3
commit
06da42beec
@ -514,4 +514,5 @@ void shortlog_output(struct shortlog *log)
|
||||
string_list_clear(&log->list, 1);
|
||||
clear_mailmap(&log->mailmap);
|
||||
string_list_clear(&log->format, 0);
|
||||
string_list_clear(&log->trailers, 0);
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@ test_description='git shortlog
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user