[PATCH 00/15] Fixing memory leaks
- From
Stefan Beller <sbeller@google.com>
- Date
- Mar 21, 2015, 00:27 UTC
- Message-ID
- <1426897692-18322-1-git-send-email-sbeller@google.com>
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(-)
-- 2.3.0.81.gc37f363