mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
1 parent
8be6a89654
commit
1cacb50f2b
1 file changed
+4
@@ -118,6 +118,10 @@ int EIOPromise::After(eio_req *req) {
|
||||
Local<Value> exception = Exception::Error(
|
||||
String::NewSymbol(strerror(req->errorno)));
|
||||
promise->EmitError(1, &exception);
|
||||
if (req->type == EIO_WRITE) {
|
||||
assert(req->ptr2);
|
||||
delete [] req->ptr2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user