From bad0e2c6a89b52b0d6b2ebae6e290b6d4e6f799c Mon Sep 17 00:00:00 2001 From: Rene Scharfe Date: Wed, 30 Aug 2017 19:49:46 +0200 Subject: help: release strbuf on error return in exec_woman_emacs() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano diff --git a/builtin/help.c b/builtin/help.c index 12fb489..b3f60a8 100644 --- a/builtin/help.c +++ b/builtin/help.c @@ -131,6 +131,7 @@ static void exec_woman_emacs(const char *path, const char *page) strbuf_addf(&man_page, "(woman \"%s\")", page); execlp(path, "emacsclient", "-e", man_page.buf, (char *)NULL); warning_errno(_("failed to exec '%s'"), path); + strbuf_release(&man_page); } } -- cgit v0.10.2-6-g49f6