mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
vim-patch:7.4.1727
Problem: Cannot detect a crash in tests when caused by garbagecollect().
Solution: Add garbagecollect_for_testing(). Do not free a job if is still
useful.
ebf7dfa6f1
This commit is contained in:
@@ -624,8 +624,9 @@ void getout(int exitval)
|
||||
iconv_end();
|
||||
#endif
|
||||
cs_end();
|
||||
if (garbage_collect_at_exit)
|
||||
garbage_collect();
|
||||
if (garbage_collect_at_exit) {
|
||||
garbage_collect(false);
|
||||
}
|
||||
|
||||
mch_exit(exitval);
|
||||
}
|
||||
|
Reference in New Issue
Block a user