Skip to content

Fixing memory leaks

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15read-cache: fix memleakread-cache.c+2 -06 replies
2/15read-cache: Improve readabilityread-cache.c+1 -33 replies
3/15read-cache: free cache entry in add_to_index in case of early returnread-cache.c+5 -23 replies
4/15update-index: fix a memleakbuiltin/update-index.c+1 -03 replies
5/15builtin/apply.c: fix a memleakbuiltin/apply.c+1 -03 replies
6/15merge-blobs.c: Fix a memleakmerge-blobs.c+3 -10 replies
7/15merge-recursive: fix memleaksmerge-recursive.c+3 -01 reply
8/15http-push: Remove unneeded cleanuphttp-push.c+0 -10 replies
9/15http: release the memory of a http pack request as wellhttp.c+1 -03 replies
10/15commit.c: fix a memory leakbuiltin/commit.c+4 -24 replies
11/15builtin/check-attr: fix a memleakbuiltin/check-attr.c+2 -01 reply
12/15builtin/merge-base: fix memleakbuiltin/merge-base.c+1 -00 replies
13/15builtin/unpack-file: fix a memleakbuiltin/unpack-file.c+1 -00 replies
14/15builtin/cat-file: free memleakbuiltin/cat-file.c+1 -00 replies
15/15ls-files: fix a memleakbuiltin/ls-files.c+1 -00 replies

Reviews trailers per patch

1 of 15 patches has a Reviewed-by or Acked-by.

PatchJunio C HamanoStefan Beller
1/15Helped-by Helped-by
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15
10/15R-b
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] Fixing memory leaks

So here comes another bunch of mem leak fixes. While I consider the first 10 patches a pretty safe bet, the last 5 hopefully spark a discussion if we want patches which just clean up before the program ends.

Stefan Beller (15):
read-cache: fix memleak
read-cache: Improve readability
read-cache: free cache entry in add_to_index in case of early return
update-index: fix a memleak
builtin/apply.c: fix a memleak
merge-blobs.c: Fix a memleak
merge-recursive: fix memleaks
http-push: Remove unneeded cleanup
http: release the memory of a http pack request as well commit.c: fix a memory leak
builtin/check-attr: fix a memleak
builtin/merge-base: fix memleak
builtin/unpack-file: fix a memleak
builtin/cat-file: free memleak
ls-files: fix a memleak

 builtin/apply.c        |  1 +
 builtin/cat-file.c     |  1 +
 builtin/check-attr.c   |  2 ++
 builtin/commit.c       |  6 ++++--
 builtin/ls-files.c     |  1 +
 builtin/merge-base.c   |  1 +
 builtin/unpack-file.c  |  1 +
 builtin/update-index.c |  1 +
 http-push.c            |  1 -
 http.c                 |  1 +
 merge-blobs.c          |  4 +++-
 merge-recursive.c      |  3 +++
 read-cache.c           | 13 ++++++++-----
 13 files changed, 27 insertions(+), 9 deletions(-)
Signature · 1 line
2.3.0.81.gc37f363