mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
log: Assert that we haven't started freeing memory before logging
This is to catch situations like the previous commit, which somehow avoided detection by any of the CI builds.
This commit is contained in:
parent
1bd916df35
commit
d59bf058ab
@ -109,6 +109,12 @@ bool logmsg(int log_level, const char *context, const char *func_name,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef EXITFREE
|
||||||
|
// Logging after we've already started freeing all our memory will only cause
|
||||||
|
// pain. We need access to VV_PROGPATH, homedir, etc.
|
||||||
|
assert(!entered_free_all_mem);
|
||||||
|
#endif
|
||||||
|
|
||||||
log_lock();
|
log_lock();
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
FILE *log_file = open_log_file();
|
FILE *log_file = open_log_file();
|
||||||
|
Loading…
Reference in New Issue
Block a user