diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-06-11 11:20:28 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-11 13:15:06 -0700 |
| commit | 748bd0943b696ba2b2942ce6e9d0dbfebf8b1fc3 (patch) | |
| tree | 6e9b81475b03466777c5007bc42beb79c1c2030f /builtin | |
| parent | a90a08961190dda2f664e102822fb6a7152e65d5 (diff) | |
| download | git-748bd0943b696ba2b2942ce6e9d0dbfebf8b1fc3.tar.gz | |
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>
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/stash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/stash.c b/builtin/stash.c index 628d848a0b..1ed0a9a5d9 100644 --- a/builtin/stash.c +++ b/builtin/stash.c @@ -975,7 +975,9 @@ static int show_stash(int argc, const char **argv, const char *prefix) log_tree_diff_flush(&rev); ret = diff_result_code(&rev.diffopt); + cleanup: + strvec_clear(&revision_args); strvec_clear(&stash_args); free_stash_info(&info); release_revisions(&rev); |
