help: release strbuf on error return in exec_woman_emacs()

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

Rene Scharfe committed Aug 30, 2017 at 19:49 UTC bad0e2c6a89b52b0d6b2ebae6e290b6d4e6f799c
1 file changed +1
builtin/help.c
+1
@@ -131,6 +131,7 @@ static void exec_woman_emacs(const char *path, const char *page)
131 strbuf_addf(&man_page, "(woman \"%s\")", page);
132 execlp(path, "emacsclient", "-e", man_page.buf, (char *)NULL);
133 warning_errno(_("failed to exec '%s'"), path);
134 + strbuf_release(&man_page);
135 }
136 }
137