Browse Source

dgram: fix memory leak in error path

v0.7.4-release
Ben Noordhuis 13 years ago
parent
commit
3f5bb15f35
  1. 1
      src/udp_wrap.cc

1
src/udp_wrap.cc

@ -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();

Loading…
Cancel
Save