From 2a9d7b4b493074e05e7ccedd89bb0787c1e64537 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 25 May 2011 17:51:32 +0000 Subject: Memory leak in error path, from Tiago Cunha. --- usr.bin/tmux/cmd-set-buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux') diff --git a/usr.bin/tmux/cmd-set-buffer.c b/usr.bin/tmux/cmd-set-buffer.c index 8aff8dada35..f4e1a0c7eaa 100644 --- a/usr.bin/tmux/cmd-set-buffer.c +++ b/usr.bin/tmux/cmd-set-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-buffer.c,v 1.8 2011/01/04 00:42:47 nicm Exp $ */ +/* $OpenBSD: cmd-set-buffer.c,v 1.9 2011/05/25 17:51:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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); } -- cgit v1.2.3