summaryrefslogtreecommitdiffstats
path: root/cmd-load-buffer.c
diff options
context:
space:
mode:
authornicm <nicm>2014-02-17 23:07:03 +0000
committernicm <nicm>2014-02-17 23:07:03 +0000
commit6daf06b1ad61f67e9f7780d787451b9b5f82dd43 (patch)
treeadcac8b7975434a335487147e09920c26593039e /cmd-load-buffer.c
parent69b7c496accc2a646e5e2dee7870bea1194a6641 (diff)
Fix memory leaks with paste_replace, based on changes from J Raynor.
Diffstat (limited to 'cmd-load-buffer.c')
-rw-r--r--cmd-load-buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-load-buffer.c b/cmd-load-buffer.c
index eb6e0d0c..636f0fcd 100644
--- a/cmd-load-buffer.c
+++ b/cmd-load-buffer.c
@@ -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);