On Mon, May 29, 2017 at 8:18 PM, Joel Teichroeb <j...@teichroeb.net> wrote: > Once I have all those leaks fixed, is there a way to make sure I'm not > missing any? I tried using valgrind with leak-check enabled, but there > are too many leaks from other git commands.
I just used: valgrind --leak-check=full ./git-stash list And then skimmed things that mentioned stash.c in the pager. There might be some better way to do this (e.g. instrument the test suite to run valgrind for all commands and summarize that somehow), but I don't know how to do that offhand...