summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-01-09 13:34:50 +0000
committerBram Moolenaar <Bram@vim.org>2007-01-09 13:34:50 +0000
commitdf88dda91c2f436f4cf2360d27a306efc0087e4f (patch)
tree768095e434cba17f8aa2fdb77b1fbf1a51d1eccc /src/memline.c
parent201863f75dbe0e5b5a6a7a6ff071581cbc54d3a1 (diff)
downloadvim-df88dda91c2f436f4cf2360d27a306efc0087e4f.zip
updated for version 7.0-179
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c
index ddaf6de58..ea7d0e13b 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1329,8 +1329,11 @@ theend:
mf_put(mfp, hp, FALSE, FALSE);
mf_close(mfp, FALSE); /* will also vim_free(mfp->mf_fname) */
}
- vim_free(buf->b_ml.ml_stack);
- vim_free(buf);
+ if (buf != NULL)
+ {
+ vim_free(buf->b_ml.ml_stack);
+ vim_free(buf);
+ }
if (serious_error && called_from_main)
ml_close(curbuf, TRUE);
#ifdef FEAT_AUTOCMD