Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
help: release strbuf on error return in exec_man_man()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 17:49:45 +0000
(19:49 +0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a981a9f
)
diff --git
a/builtin/help.c
b/builtin/help.c
index 991a8bb16c4a20e113aa1623e1288a0d1ba0ed50..12fb48933e7529207c953890902236b3217dfac9 100644
(file)
--- a/
builtin/help.c
+++ b/
builtin/help.c
@@
-170,6
+170,7
@@
static void exec_man_cmd(const char *cmd, const char *page)
strbuf_addf(&shell_cmd, "%s %s", cmd, page);
execl(SHELL_PATH, SHELL_PATH, "-c", shell_cmd.buf, (char *)NULL);
warning(_("failed to exec '%s'"), cmd);
+ strbuf_release(&shell_cmd);
}
static void add_man_viewer(const char *name)