]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/leak-checkers'
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 01:47:55 +0000 (10:47 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 01:47:55 +0000 (10:47 +0900)
Many of our programs consider that it is OK to release dynamic
storage that is used throughout the life of the program by simply
exiting, but this makes it harder to leak detection tools to avoid
reporting false positives.  Plug many existing leaks and introduce
a mechanism for developers to mark that the region of memory
pointed by a pointer is not lost/leaking to help these tools.

* jk/leak-checkers:
  add UNLEAK annotation for reducing leak false positives
  set_git_dir: handle feeding gitdir to itself
  repository: free fields before overwriting them
  reset: free allocated tree buffers
  reset: make tree counting less confusing
  config: plug user_config leak
  update-index: fix cache entry leak in add_one_file()
  add: free leaked pathspec after add_files_to_cache()
  test-lib: set LSAN_OPTIONS to abort by default
  test-lib: --valgrind should not override --verbose-log

1  2 
Makefile
builtin/reset.c
builtin/update-index.c

diff --cc Makefile
Simple merge
diff --cc builtin/reset.c
Simple merge
Simple merge