mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
Memory leak in error path, from Tiago Cunha.
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user