Git fork

builtin/stash: fix leak in `show_stash()`

We leak the `revision_args()` variable. Fix this.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Patrick Steinhardt and committed by
Junio C Hamano
748bd094 a90a0896

+4
+2
builtin/stash.c
··· 975 975 log_tree_diff_flush(&rev); 976 976 977 977 ret = diff_result_code(&rev.diffopt); 978 + 978 979 cleanup: 980 + strvec_clear(&revision_args); 979 981 strvec_clear(&stash_args); 980 982 free_stash_info(&info); 981 983 release_revisions(&rev);
+1
t/t3420-rebase-autostash.sh
··· 7 7 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 8 8 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 9 9 10 + TEST_PASSES_SANITIZE_LEAK=true 10 11 . ./test-lib.sh 11 12 12 13 test_expect_success setup '
+1
t/t3907-stash-show-config.sh
··· 2 2 3 3 test_description='Test git stash show configuration.' 4 4 5 + TEST_PASSES_SANITIZE_LEAK=true 5 6 . ./test-lib.sh 6 7 7 8 test_expect_success 'setup' '