When using automated tools to find memory leaks, it is hard to distinguish between actual leaks and intentional non-cleanups at the end of the program, such that the actual leaks hide in the noise. The end goal of this (unfinished) series is to close all intentional memory leaks when enabling the -DFREE_ALL_MEMORY switch. This is just demonstrating how the beginning of such a series could look like. Thanks, Stefan Stefan Beller (3): mv: free memory at the end if desired pack-redundant: free all memory rev-parse: free all memory Makefile | 7 ++++++- builtin/mv.c | 7 +++++++ builtin/pack-redundant.c | 17 +++++++++++++++++ builtin/rev-parse.c | 12 +++++++++++- 4 files changed, 41 insertions(+), 2 deletions(-) -- 2.8.2.401.g9c0faef -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html