summaryrefslogtreecommitdiff
path: root/bloom.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-05-07 03:47:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-05-07 03:47:41 (GMT)
commit936e58851af0324d408c9e1a70cddd288d892a45 (patch)
tree6c0eaca13d0c6f4d7343d773a994441b042d1729 /bloom.c
parent8585d6c04aa903526b4b3554e90d6381ec62390a (diff)
parent37be11994f95d0519f3a7274df5254e56f56a7fe (diff)
downloadgit-936e58851af0324d408c9e1a70cddd288d892a45.zip
git-936e58851af0324d408c9e1a70cddd288d892a45.tar.gz
git-936e58851af0324d408c9e1a70cddd288d892a45.tar.bz2
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 'bloom.c')
-rw-r--r--bloom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bloom.c b/bloom.c
index 52b8747..5e29703 100644
--- a/bloom.c
+++ b/bloom.c
@@ -283,6 +283,7 @@ struct bloom_filter *get_or_compute_bloom_filter(struct repository *r,
struct bloom_key key;
fill_bloom_key(e->path, strlen(e->path), &key, settings);
add_key_to_filter(&key, filter, settings);
+ clear_bloom_key(&key);
}
cleanup: