summaryrefslogtreecommitdiff
path: root/builtin/help.c
diff options
context:
space:
mode:
authorRene Scharfe <l.s.r@web.de>2017-08-30 17:49:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-06 23:49:27 (GMT)
commita981a9f0e7fb0d2a65fc3c4532fdfc38cc275c48 (patch)
treef6247092393d668b2ab2cf3e7dc90d247ee0d47c /builtin/help.c
parent5a612017eb7865de10dc21f3d3f8856e8205456e (diff)
downloadgit-a981a9f0e7fb0d2a65fc3c4532fdfc38cc275c48.zip
git-a981a9f0e7fb0d2a65fc3c4532fdfc38cc275c48.tar.gz
git-a981a9f0e7fb0d2a65fc3c4532fdfc38cc275c48.tar.bz2
help: release strbuf on error return in exec_man_konqueror()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/help.c')
-rw-r--r--builtin/help.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/help.c b/builtin/help.c
index 334a849..991a8bb 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);
}
}