PlainDatagramSocketImpl questions
Bernd Eckenfels
bernd-2013 at eckenfels.net
Thu Jun 13 13:50:09 PDT 2013
Am 13.06.2013, 22:47 Uhr, schrieb Alan Bateman <Alan.Bateman at oracle.com>:
> Yes, it looks like close is missing in a few places (but probably hasn't
> been noticed as it's unlikely that the setsockopt will fail).
Linux Kernel is using in those situations an error-out label.
if () {
Throw...
goto error;
}
...
error:
close(fd);
return;
Greetings
Bernd
--
http://bernd.eckenfels.net
More information about the net-dev
mailing list