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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user