We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d69ba8 commit 830129dCopy full SHA for 830129d
src/cli/vm.c
@@ -286,10 +286,18 @@ static void initVM()
286
uv_loop_init(loop);
287
}
288
289
+void on_uvClose(uv_handle_t* handle)
290
+{
291
+ if (handle != NULL)
292
+ {
293
+ free(handle);
294
+ }
295
+}
296
+
297
void on_uvWalkForShutdown(uv_handle_t* handle, void* arg)
298
{
299
if (!uv_is_closing(handle))
- uv_close(handle, NULL);
300
+ uv_close(handle, on_uvClose);
301
302
303
static void uvShutdown() {
0 commit comments