wt-status: release strbuf after use in read_rebase_todolist()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Rene Scharfe committed
Aug 30, 2017 at 20:20 UTC
6f49541ddbcb91a7bd5948f204f56bf5742dd75d
1 file changed
+1
wt-status.c
+1
@@ -1193,6 +1193,7 @@ static int read_rebase_todolist(const char *fname, struct string_list *lines)
1193
string_list_append(lines, line.buf);
1194
}
1195
fclose(f);
1196
+ strbuf_release(&line);
1197
return 0;
1198
}
1199