Description[NaCl SDK] nacl_io: Fix leak when recv'ing from udp socket.
Packet::Copy AddRefs the address resource returned from
PPB_UDPSocket::RecvFrom. But the convention is that when returning a new
resource, the resource will already have a refcount of 1. So the resource has
an leaked reference and will never be destroyed.
This memory leak cannot be detected from untrusted code (I overrode
mmap/mmunmap, but was unable to find it), but can be seen from the Chrome task
manager.
See user report here:
https://groups.google.com/d/msg/native-client-discuss/fEc6v7_wjkI/lnFNO09yw9kJ
BUG=none
R=noelallen@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290691
Patch Set 1 #
Total comments: 3
Messages
Total messages: 5 (0 generated)
|