Merge branch 'ah/plugleaks'
authorJunio C Hamano <gitster@pobox.com>
Fri, 7 May 2021 03:47:41 +0000 (12:47 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 May 2021 03:47:41 +0000 (12:47 +0900)
commit936e58851af0324d408c9e1a70cddd288d892a45
tree6c0eaca13d0c6f4d7343d773a994441b042d1729
parent8585d6c04aa903526b4b3554e90d6381ec62390a
parent37be11994f95d0519f3a7274df5254e56f56a7fe
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
bloom.c
branch.c
builtin/check-ignore.c
builtin/checkout.c
builtin/for-each-ref.c
builtin/ls-files.c
builtin/rebase.c
builtin/rm.c
revision.c
wt-status.c