aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-01-02 07:18:18 -0500
committerJames McCoy <jamessan@jamessan.com>2017-01-02 07:18:18 -0500
commitaf2b5abcd6203af3fbb2b63ed46239763d32b62e (patch)
treeebe639a833c898890bc32863fa5a3146e082afa7 /src/nvim/memory.c
parentf7639e249081833e2e0064601bf8327192913636 (diff)
downloadrneovim-af2b5abcd6203af3fbb2b63ed46239763d32b62e.tar.gz
rneovim-af2b5abcd6203af3fbb2b63ed46239763d32b62e.tar.bz2
rneovim-af2b5abcd6203af3fbb2b63ed46239763d32b62e.zip
lint
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r--src/nvim/memory.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index ca6aa6381d..1884d55999 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -489,10 +489,11 @@ void free_all_mem(void)
{
buf_T *buf, *nextbuf;
- /* When we cause a crash here it is caught and Vim tries to exit cleanly.
- * Don't try freeing everything again. */
- if (entered_free_all_mem)
+ // When we cause a crash here it is caught and Vim tries to exit cleanly.
+ // Don't try freeing everything again.
+ if (entered_free_all_mem) {
return;
+ }
entered_free_all_mem = true;
// Don't want to trigger autocommands from here on.