diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-01-09 13:34:50 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-01-09 13:34:50 +0000 |
commit | df88dda91c2f436f4cf2360d27a306efc0087e4f (patch) | |
tree | 768095e434cba17f8aa2fdb77b1fbf1a51d1eccc /src/memline.c | |
parent | 201863f75dbe0e5b5a6a7a6ff071581cbc54d3a1 (diff) | |
download | vim-df88dda91c2f436f4cf2360d27a306efc0087e4f.zip |
updated for version 7.0-179
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 7 |
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 |