mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
dgram: fix memory leak in error path
This commit is contained in:
@@ -365,6 +365,7 @@ void UDPWrap::OnRecv(uv_udp_t* handle,
|
||||
|
||||
if (nread == -1) {
|
||||
SetErrno(uv_last_error(uv_default_loop()));
|
||||
ReleaseMemory(buf.base, NULL);
|
||||
}
|
||||
else {
|
||||
Local<Object> rinfo = Object::New();
|
||||
|
||||
Reference in New Issue
Block a user