[PATCH 0/6] Some cleanups
- From
Stefan Beller <sbeller@google.com>
- Date
- Mar 30, 2016, 00:38 UTC
- Message-ID
- <1459298333-21899-1-git-send-email-sbeller@google.com>
One of my first patches to Git were cleanup patches, and I fell back to my old pattern here, while thinking on how to write better commit messages for the submodule bugfixes I currently have in flight.
Just some one liners to not leak memory or file descriptors.
They are bundled as a series, but no patch relies on any predessor.
This applies on v2.8.0.
Thanks, Stefan
Stefan Beller (6): path.c: allocate enough memory for string imap-send.c, cram: allocate enough memory for null terminated string notes: don't leak memory in git_config_get_notes_strategy abbrev_sha1_in_line: don't leak memory bundle: don't leak an fd in case of early return credential-cache, send_request: close fd when done
builtin/notes.c | 1 + bundle.c | 10 ++++++++-- credential-cache.c | 1 + imap-send.c | 2 +- path.c | 2 +- wt-status.c | 2 +- 6 files changed, 13 insertions(+), 5 deletions(-)
-- 2.8.0.8.g27a27a6.dirty