aboutsummaryrefslogtreecommitdiff
path: root/cmd-set-buffer.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-05-26 20:16:17 +0000
committerTiago Cunha <tcunha@gmx.com>2011-05-26 20:16:17 +0000
commitf9cb06cf2c6c3d643f4a0f6f0512b91c77a2f0d7 (patch)
treeb951a91aef04ce373b7c18eea55282e801235692 /cmd-set-buffer.c
parent28427efbacbbda906f837a3140be07621d5f2934 (diff)
downloadrtmux-f9cb06cf2c6c3d643f4a0f6f0512b91c77a2f0d7.tar.gz
rtmux-f9cb06cf2c6c3d643f4a0f6f0512b91c77a2f0d7.tar.bz2
rtmux-f9cb06cf2c6c3d643f4a0f6f0512b91c77a2f0d7.zip
Sync OpenBSD patchset 920:
Memory leak in error path, from Tiago Cunha.
Diffstat (limited to 'cmd-set-buffer.c')
-rw-r--r--cmd-set-buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-set-buffer.c b/cmd-set-buffer.c
index c0979745..218f3bd1 100644
--- a/cmd-set-buffer.c
+++ b/cmd-set-buffer.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-set-buffer.c,v 1.14 2011-01-07 14:45:34 tcunha Exp $ */
+/* $Id$ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -61,6 +61,7 @@ cmd_set_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
if (cause != NULL) {
ctx->error(ctx, "buffer %s", cause);
xfree(cause);
+ xfree(pdata);
return (-1);
}