diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-04-13 14:12:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-13 14:12:34 -0700 |
commit | fc452aeac2d5d357de2904aebee8d3867f92705c (patch) | |
tree | eddb9131bf8f3abba7be345e77b61624b8106ea8 /wt-status.c | |
parent | 5250af49f03b5f2da96770523f69d7584693b553 (diff) | |
parent | 9c60d9faab43f73166d4cebb7c86b1bbf8d8df4b (diff) | |
download | git-fc452aeac2d5d357de2904aebee8d3867f92705c.tar.gz |
Merge branch 'sb/misc-cleanups'
Assorted minor clean-ups.
* sb/misc-cleanups:
credential-cache, send_request: close fd when done
bundle: don't leak an fd in case of early return
abbrev_sha1_in_line: don't leak memory
notes: don't leak memory in git_config_get_notes_strategy
Diffstat (limited to 'wt-status.c')
-rw-r--r-- | wt-status.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wt-status.c b/wt-status.c index ef7486474a..1ea2ebe4c0 100644 --- a/wt-status.c +++ b/wt-status.c @@ -1063,9 +1063,7 @@ static void abbrev_sha1_in_line(struct strbuf *line) strbuf_addf(line, "%s", split[i]->buf); } } - for (i = 0; split[i]; i++) - strbuf_release(split[i]); - + strbuf_list_free(split); } static void read_rebase_todolist(const char *fname, struct string_list *lines) |