Sync OpenBSD patchset 956:

Another memory leak from Tiago Cunha.
This commit is contained in:
Tiago Cunha 2011-09-21 16:34:34 +00:00
parent cb752f9938
commit d9807eeba1

View File

@ -109,6 +109,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
buffer = args_strtonum(args, 'b', 0, INT_MAX, &cause); buffer = args_strtonum(args, 'b', 0, INT_MAX, &cause);
if (cause != NULL) { if (cause != NULL) {
ctx->error(ctx, "buffer %s", cause); ctx->error(ctx, "buffer %s", cause);
xfree(buf);
xfree(cause); xfree(cause);
return (-1); return (-1);
} }