Skip to content

Free all the memory!

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mv: free memory at the end if desiredMakefile builtin/mv.c+13 -11 reply
2/3pack-redundant: free all memorybuiltin/pack-redundant.c+17 -01 reply
3/3rev-parse: free all memorybuiltin/rev-parse.c+11 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFD PATCH 0/3] Free all the memory!

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(-)
Signature · 1 line
2.8.2.401.g9c0faef