summaryrefslogtreecommitdiffstats
path: root/builtin/am.c
diff options
context:
space:
mode:
authorRene Scharfe <l.s.r@web.de>2017-08-30 19:49:34 +0200
committerJunio C Hamano <gitster@pobox.com>2017-09-07 01:49:26 +0200
commit28ac7aa79b9e7865124aec0eb552a1e3cc9ecdd7 (patch)
treeb1e3aa6360b4806be994d90fd15cbc2a349852bb /builtin/am.c
parentam: release strbuf on error return in hg_patch_to_mail() (diff)
downloadgit-28ac7aa79b9e7865124aec0eb552a1e3cc9ecdd7.tar.xz
git-28ac7aa79b9e7865124aec0eb552a1e3cc9ecdd7.zip
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>
Diffstat (limited to 'builtin/am.c')
-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);