flint: minor fixes

This commit is contained in:
Dmitry Simonenko 2016-11-24 17:07:33 +03:00
parent 8fbdad2eb8
commit ee2a4f8c3d
1 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
/*
* flint.
* machinarium.
*
* Cooperative multitasking engine.
*/
@ -40,6 +40,7 @@ mm_new(void)
static void
mm_free_cb(uv_handle_t *handle, void *arg)
{
/* make sure we have not leaked anything */
abort();
}
@ -53,8 +54,6 @@ mm_free(mm_t envp)
/* close async and wait for completion */
uv_close((uv_handle_t*)&env->async, NULL);
uv_run(&env->loop, UV_RUN_DEFAULT);
/* ensure we have not leaked any requests */
uv_walk(&env->loop, mm_free_cb, NULL);
uv_run(&env->loop, UV_RUN_DEFAULT);