Skip to content

Commit 6f49541

Browse files
rscharfegitster
authored andcommitted
wt-status: release strbuf after use in read_rebase_todolist()
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9f00492 commit 6f49541

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wt-status.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,7 @@ static int read_rebase_todolist(const char *fname, struct string_list *lines)
11931193
string_list_append(lines, line.buf);
11941194
}
11951195
fclose(f);
1196+
strbuf_release(&line);
11961197
return 0;
11971198
}
11981199

0 commit comments

Comments
 (0)