From: Rene Scharfe Date: Wed, 30 Aug 2017 17:49:44 +0000 (+0200) Subject: help: release strbuf on error return in exec_man_konqueror() X-Git-Tag: v2.15.0-rc0~78^2~21 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a981a9f0e7fb0d2a65fc3c4532fdfc38cc275c48 help: release strbuf on error return in exec_man_konqueror() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/builtin/help.c b/builtin/help.c index 334a8494ab..991a8bb16c 100644 --- a/builtin/help.c +++ b/builtin/help.c @@ -152,6 +152,7 @@ static void exec_man_konqueror(const char *path, const char *page) strbuf_addf(&man_page, "man:%s(1)", page); execlp(path, filename, "newTab", man_page.buf, (char *)NULL); warning_errno(_("failed to exec '%s'"), path); + strbuf_release(&man_page); } }