summaryrefslogtreecommitdiffstats
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-08-30 09:20:17 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-08-30 09:20:17 +0000
commit9800eaa63fc4f593d5781ef202c2ace8f2ab7a0b (patch)
tree0bc76e2a83332e54726e1f17ae021ad672bd60bd /cmd-capture-pane.c
parent423649b2c61eaa976490bfa331b35cec7de92d48 (diff)
Another memory leak from Tiago Cunha.
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index bdf74106..32c6007b 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -109,6 +109,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
buffer = args_strtonum(args, 'b', 0, INT_MAX, &cause);
if (cause != NULL) {
ctx->error(ctx, "buffer %s", cause);
+ xfree(buf);
xfree(cause);
return (-1);
}