help: release strbuf on error return in exec_man_konqueror()
authorRene Scharfe <l.s.r@web.de>
Wed, 30 Aug 2017 17:49:44 +0000 (19:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2017 23:49:27 +0000 (08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/help.c
index 334a8494abcc4ac52babf468d8a1ef415aa7f297..991a8bb16c4a20e113aa1623e1288a0d1ba0ed50 100644 (file)
@@ -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);
        }
 }