diff options
author | Rene Scharfe <l.s.r@web.de> | 2017-08-30 20:20:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-10 09:38:57 +0200 |
commit | b6ec3071774fb4eab406e76c29cbf1a5f27929a8 (patch) | |
tree | 45cc97b97287f04e266a833125df851c343840fe /wt-status.c | |
parent | wt-status: release strbuf after use in read_rebase_todolist() (diff) | |
download | git-b6ec3071774fb4eab406e76c29cbf1a5f27929a8.tar.xz git-b6ec3071774fb4eab406e76c29cbf1a5f27929a8.zip |
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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.c')
-rw-r--r-- | wt-status.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wt-status.c b/wt-status.c index cafafb5ecd..ac972acbab 100644 --- a/wt-status.c +++ b/wt-status.c @@ -1026,6 +1026,7 @@ static void wt_longstatus_print_tracking(struct wt_status *s) comment_line_char); else fputs("\n", s->fp); + strbuf_release(&sb); } static int has_unmerged(struct wt_status *s) |