Browse Source

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>
maint
Rene Scharfe 8 years ago committed by Junio C Hamano
parent
commit
bad0e2c6a8
  1. 1
      builtin/help.c

1
builtin/help.c

@ -131,6 +131,7 @@ static void exec_woman_emacs(const char *path, const char *page) @@ -131,6 +131,7 @@ static void exec_woman_emacs(const char *path, const char *page)
strbuf_addf(&man_page, "(woman \"%s\")", page);
execlp(path, "emacsclient", "-e", man_page.buf, (char *)NULL);
warning_errno(_("failed to exec '%s'"), path);
strbuf_release(&man_page);
}
}


Loading…
Cancel
Save