mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
@@ -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