mirror of
https://github.com/neovim/neovim.git
synced 2026-05-03 12:35:00 +00:00
loop: Free the parent queue last when destroying the loop
This avoids a heap-use-after-free ASAN error. Close #3334
This commit is contained in:
@@ -86,9 +86,9 @@ void loop_close(Loop *loop)
|
||||
do {
|
||||
uv_run(&loop->uv, UV_RUN_DEFAULT);
|
||||
} while (uv_loop_close(&loop->uv));
|
||||
queue_free(loop->events);
|
||||
queue_free(loop->fast_events);
|
||||
queue_free(loop->thread_events);
|
||||
queue_free(loop->events);
|
||||
kl_destroy(WatcherPtr, loop->children);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user