Skip to content

Commit b6ec307

Browse files
rscharfegitster
authored andcommitted
wt-status: release strbuf after use in wt_longstatus_print_tracking()
If format_tracking_info() returns 0, then it didn't touch its strbuf parameter, so it's OK to exit early in that case. Clean up sb in the other case. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6f49541 commit b6ec307

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
@@ -1026,6 +1026,7 @@ static void wt_longstatus_print_tracking(struct wt_status *s)
10261026
comment_line_char);
10271027
else
10281028
fputs("\n", s->fp);
1029+
strbuf_release(&sb);
10291030
}
10301031

10311032
static int has_unmerged(struct wt_status *s)

0 commit comments

Comments
 (0)