Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
uv: upgrade to 34e95d1
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Dec 4, 2011
1 parent c50b0c9 commit a0fdd5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion deps/uv/src/unix/core.c
Expand Up @@ -169,7 +169,15 @@ uv_loop_t* uv_loop_new(void) {
void uv_loop_delete(uv_loop_t* loop) {
uv_ares_destroy(loop, loop->channel);
ev_loop_destroy(loop->ev);
free(loop);

#ifndef NDEBUG
memset(loop, 0, sizeof *loop);
#endif

if (loop == default_loop_ptr)
default_loop_ptr = NULL;
else
free(loop);
}


Expand Down
1 change: 1 addition & 0 deletions deps/uv/src/unix/error.c
Expand Up @@ -82,6 +82,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case EHOSTUNREACH: return UV_EHOSTUNREACH;
case EAI_NONAME: return UV_ENOENT;
case ESRCH: return UV_ESRCH;
case ETIMEDOUT: return UV_ETIMEDOUT;
default: return UV_UNKNOWN;
}

Expand Down

0 comments on commit a0fdd5f

Please sign in to comment.