aboutsummaryrefslogtreecommitdiff
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-09-21 16:34:34 +0000
committerTiago Cunha <tcunha@gmx.com>2011-09-21 16:34:34 +0000
commitd9807eeba14bf35b99ed73c75a6303817729fa58 (patch)
tree3e31f3358204ecbd727d969249ab3c80dca7d9af /cmd-capture-pane.c
parentcb752f9938cebb056321930d4b1f718db4992534 (diff)
downloadrtmux-d9807eeba14bf35b99ed73c75a6303817729fa58.tar.gz
rtmux-d9807eeba14bf35b99ed73c75a6303817729fa58.tar.bz2
rtmux-d9807eeba14bf35b99ed73c75a6303817729fa58.zip
Sync OpenBSD patchset 956:
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 888ce325..9f2d792a 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);
}