1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-23 12:58:50 +00:00

Sync OpenBSD patchset 920:

Memory leak in error path, from Tiago Cunha.
This commit is contained in:
Tiago Cunha 2011-05-26 20:16:17 +00:00
parent 28427efbac
commit f9cb06cf2c

View File

@ -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> * 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) { if (cause != NULL) {
ctx->error(ctx, "buffer %s", cause); ctx->error(ctx, "buffer %s", cause);
xfree(cause); xfree(cause);
xfree(pdata);
return (-1); return (-1);
} }