From: Rene Scharfe Date: Wed, 30 Aug 2017 18:20:17 +0000 (+0200) Subject: wt-status: release strbuf after use in read_rebase_todolist() X-Git-Tag: v2.15.0-rc0~78^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6f49541ddbcb91a7bd5948f204f56bf5742dd75d wt-status: release strbuf after use in read_rebase_todolist() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/wt-status.c b/wt-status.c index 77c27c5113..cafafb5ecd 100644 --- a/wt-status.c +++ b/wt-status.c @@ -1193,6 +1193,7 @@ static int read_rebase_todolist(const char *fname, struct string_list *lines) string_list_append(lines, line.buf); } fclose(f); + strbuf_release(&line); return 0; }