summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-18 14:40:15 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-18 14:40:15 -0700
commit66106691a1b71e445fe5e4d6b8b043dffc7dfe4c (patch)
tree580fee1afc5f1b54fa2525fe461630a0f6b10c1b /wt-status.c
parent989cbd455619e1e7b6156366ee7fd5376af683b6 (diff)
parent99dab16863c2eca584a84bdde748b9c113717603 (diff)
downloadgit-66106691a1b71e445fe5e4d6b8b043dffc7dfe4c.tar.gz
Merge branch 'sb/misc-cleanups' into HEAD
* sb/misc-cleanups: submodule-config: don't shadow `cache` config.c: drop local variable 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.c4
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)