Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
wt-status: release strbuf after use in wt_longstatus_print_tracking()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 18:20:18 +0000
(20:20 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 10 Sep 2017 07:38:57 +0000
(16:38 +0900)
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>
wt-status.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
6f49541
)
diff --git
a/wt-status.c
b/wt-status.c
index cafafb5ecdb95ee6076695ef4bca27f8e9836d8f..ac972acbab9650266c19c16e6a761903ff21250c 100644
(file)
--- 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)