am: release strbuf after use in safe_to_abort()
authorRene Scharfe <l.s.r@web.de>
Wed, 30 Aug 2017 17:49:34 +0000 (19:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2017 23:49:26 +0000 (08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c
index 3d38b3fe9fdc15bcab773565fcc0b5e5dfb0ebaf..d7513f53759bc5834aa02bd904432f64e036ccb6 100644 (file)
@@ -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);