am: release strbufs after use in detect_patch_format()
commit542627a4f79ffe1c21e759508ee3c6c4f1211be6
authorRene Scharfe <l.s.r@web.de>
Wed, 30 Aug 2017 17:49:32 +0000 (30 19:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2017 23:49:26 +0000 (7 08:49 +0900)
tree4493797385cee1c8c9a75bb91da46fc11ff18932
parent238e487ea943f80734cc6dad665e7238b8cbc7ff
am: release strbufs after use in detect_patch_format()

Don't reset the strbufs l2 and l3 before use as if they were static, but
release them at the end instead.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c