summaryrefslogtreecommitdiffstats
path: root/cmd-load-buffer.c
diff options
context:
space:
mode:
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 b7c299b7..47cb0ca2 100644
--- a/cmd-load-buffer.c
+++ b/cmd-load-buffer.c
@@ -87,6 +87,7 @@ cmd_load_buffer_exec(struct cmd *self, struct cmdq_item *item)
if (error != 0) {
cmdq_error(item, "-: %s", cause);
free(cause);
+ free(cdata);
return (CMD_RETURN_ERROR);
}
return (CMD_RETURN_WAIT);