summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-load-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2014-02-17 23:07:03 +0000
committernicm <nicm@openbsd.org>2014-02-17 23:07:03 +0000
commit1ac29a775d849917840d63aef99eb2f74bd51d40 (patch)
tree79af693d216042a071ef7794c5e18234b4cb8223 /usr.bin/tmux/cmd-load-buffer.c
parentHaving CpuSMAP and Cpu64 overlap isn't a terribly good idea. (diff)
downloadwireguard-openbsd-1ac29a775d849917840d63aef99eb2f74bd51d40.tar.xz
wireguard-openbsd-1ac29a775d849917840d63aef99eb2f74bd51d40.zip
Fix memory leaks with paste_replace, based on changes from J Raynor.
Diffstat (limited to 'usr.bin/tmux/cmd-load-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-load-buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c
index 121bd665494..e98e54a8f42 100644
--- a/usr.bin/tmux/cmd-load-buffer.c
+++ b/usr.bin/tmux/cmd-load-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-load-buffer.c,v 1.26 2014/02/14 13:59:01 nicm Exp $ */
+/* $OpenBSD: cmd-load-buffer.c,v 1.27 2014/02/17 23:07:03 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -169,6 +169,7 @@ cmd_load_buffer_callback(struct client *c, int closed, void *data)
/* No context so can't use server_client_msg_error. */
evbuffer_add_printf(c->stderr_data, "no buffer %d\n", *buffer);
server_push_stderr(c);
+ free(pdata);
}
free(data);