aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
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.