Memory leak in error path, from Tiago Cunha.

pull/1/head
Nicholas Marriott 2011-05-25 17:51:31 +00:00
parent 70d232289b
commit 480e48aa66
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}