Skip to content

Commit a981a9f

Browse files
rscharfegitster
authored andcommitted
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>
1 parent 5a61201 commit a981a9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/help.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ static void exec_man_konqueror(const char *path, const char *page)
152152
strbuf_addf(&man_page, "man:%s(1)", page);
153153
execlp(path, filename, "newTab", man_page.buf, (char *)NULL);
154154
warning_errno(_("failed to exec '%s'"), path);
155+
strbuf_release(&man_page);
155156
}
156157
}
157158

0 commit comments

Comments
 (0)