diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-05-25 17:51:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-05-25 17:51:32 +0000 |
commit | 2a9d7b4b493074e05e7ccedd89bb0787c1e64537 (patch) | |
tree | 178e811fc7aac20aeadf43ca90974f10672bf16a /usr.bin/tmux | |
parent | 60a662dedcd735b404c9a04559217e83a7901dd3 (diff) |
Memory leak in error path, from Tiago Cunha.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/cmd-set-buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-set-buffer.c b/usr.bin/tmux/cmd-set-buffer.c index 8aff8dada35..f4e1a0c7eaa 100644 --- a/usr.bin/tmux/cmd-set-buffer.c +++ b/usr.bin/tmux/cmd-set-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-buffer.c,v 1.8 2011/01/04 00:42:47 nicm Exp $ */ +/* $OpenBSD: cmd-set-buffer.c,v 1.9 2011/05/25 17:51:31 nicm Exp $ */ /* * 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); } |