Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: fix event loop not being unref'd on eio error

  • Loading branch information...
bnoordhuis committed Sep 5, 2011
1 parent ed355d3 commit d9176108d2510b9e92dd0e2b9e03538661f1c1a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/unix/fs.c
@@ -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); \

0 comments on commit d917610

Please sign in to comment.
You can’t perform that action at this time.