summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2dcbae2ae..cec33b0a4 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2014,7 +2014,10 @@ buflist_new(
apply_autocmds(EVENT_BUFWIPEOUT, NULL, NULL, FALSE, curbuf);
#ifdef FEAT_EVAL
if (aborting()) // autocmds may abort script processing
+ {
+ vim_free(ffname);
return NULL;
+ }
#endif
if (buf == curbuf)
{