Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: fix event loop not being unref'd on eio error
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 5, 2011
1 parent ed355d3 commit d917610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/fs.c
Expand Up @@ -43,12 +43,12 @@
uv_fs_req_init(loop, req, type, path, cb); \
if (cb) { \
/* async */ \
uv_ref(loop); \
req->eio = eiofunc(args, EIO_PRI_DEFAULT, uv__fs_after, req); \
if (!req->eio) { \
uv_err_new(loop, ENOMEM); \
return -1; \
} \
uv_ref(loop); \
} else { \
/* sync */ \
req->result = func(args); \
Expand Down

0 comments on commit d917610

Please sign in to comment.