diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-05-07 06:47:41 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-07 06:47:41 +0300 |
commit | 936e58851af0324d408c9e1a70cddd288d892a45 (patch) | |
tree | 6c0eaca13d0c6f4d7343d773a994441b042d1729 /builtin/check-ignore.c | |
parent | 8585d6c04aa903526b4b3554e90d6381ec62390a (diff) | |
parent | 37be11994f95d0519f3a7274df5254e56f56a7fe (diff) |
Merge branch 'ah/plugleaks'
Plug various leans reported by LSAN.
* ah/plugleaks:
builtin/rm: avoid leaking pathspec and seen
builtin/rebase: release git_format_patch_opt too
builtin/for-each-ref: free filter and UNLEAK sorting.
mailinfo: also free strbuf lists when clearing mailinfo
builtin/checkout: clear pending objects after diffing
builtin/check-ignore: clear_pathspec before returning
builtin/bugreport: don't leak prefixed filename
branch: FREE_AND_NULL instead of NULL'ing real_ref
bloom: clear each bloom_key after use
ls-files: free max_prefix when done
wt-status: fix multiple small leaks
revision: free remainder of old commit list in limit_list
Diffstat (limited to 'builtin/check-ignore.c')
-rw-r--r-- | builtin/check-ignore.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/check-ignore.c b/builtin/check-ignore.c index 0f4480a11b..81234552b7 100644 --- a/builtin/check-ignore.c +++ b/builtin/check-ignore.c @@ -119,6 +119,7 @@ static int check_ignore(struct dir_struct *dir, num_ignored++; } free(seen); + clear_pathspec(&pathspec); return num_ignored; } |