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>
This commit is contained in:
Rene Scharfe 2017-08-30 20:20:17 +02:00 committed by Junio C Hamano
parent 9f00492161
commit 6f49541ddb

View File

@ -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;
}