From: Rene Scharfe Date: Wed, 30 Aug 2017 17:49:34 +0000 (+0200) Subject: am: release strbuf after use in safe_to_abort() X-Git-Tag: v2.15.0-rc0~78^2~31 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/28ac7aa79b9e7865124aec0eb552a1e3cc9ecdd7?ds=inline am: release strbuf after use in safe_to_abort() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- 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);