summaryrefslogtreecommitdiffstats
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
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);
}