summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Rene Scharfe <l.s.r@web.de>2017-08-30 19:49:34 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-07 08:49:26 +0900
commit28ac7aa79b9e7865124aec0eb552a1e3cc9ecdd7 (patch)
treeb1e3aa6360b4806be994d90fd15cbc2a349852bb
parentam: release strbuf on error return in hg_patch_to_mail() (diff)
downloadtgif-28ac7aa79b9e7865124aec0eb552a1e3cc9ecdd7.tar.xz
am: release strbuf after use in safe_to_abort()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/am.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 3d38b3fe9f..d7513f5375 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -2105,6 +2105,7 @@ static int safe_to_abort(const struct am_state *state)
die(_("could not parse %s"), am_path(state, "abort-safety"));
} else
oidclr(&abort_safety);
+ strbuf_release(&sb);
if (get_oid("HEAD", &head))
oidclr(&head);