aboutsummaryrefslogtreecommitdiff
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 677f3656..a3cabdc0 100644
--- a/cmd-load-buffer.c
+++ b/cmd-load-buffer.c
@@ -127,6 +127,7 @@ error:
free(pdata);
if (f != NULL)
fclose(f);
+ free(file);
return (CMD_RETURN_ERROR);
}