diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-05-25 17:51:31 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-05-25 17:51:31 +0000 |
commit | 480e48aa66b094c68e9f058073b7c10319ac98d5 (patch) | |
tree | 3c208c8a9f36bc487a4f44b629e1af02ca2d2b21 /cmd-set-buffer.c | |
parent | 70d232289b500300a63a4ac2c45dbe4acf15c2db (diff) |
Memory leak in error path, from Tiago Cunha.
Diffstat (limited to 'cmd-set-buffer.c')
-rw-r--r-- | cmd-set-buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-set-buffer.c b/cmd-set-buffer.c index f31f8a06..14fef135 100644 --- a/cmd-set-buffer.c +++ b/cmd-set-buffer.c @@ -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); } |