Skip to content

Commit bad0e2c

Browse files
rscharfegitster
authored andcommitted
help: release strbuf on error return in exec_woman_emacs()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7246218 commit bad0e2c

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
@@ -131,6 +131,7 @@ static void exec_woman_emacs(const char *path, const char *page)
131131
strbuf_addf(&man_page, "(woman \"%s\")", page);
132132
execlp(path, "emacsclient", "-e", man_page.buf, (char *)NULL);
133133
warning_errno(_("failed to exec '%s'"), path);
134+
strbuf_release(&man_page);
134135
}
135136
}
136137

0 commit comments

Comments
 (0)