e5d1fca0f2
Today net/socket.c has no consistent policy for closing the socket file descriptor when initialization fails. This means we leak the file descriptor in some cases or we could also try to close it twice. Make error paths consistent by taking ownership of the file descriptor and closing it on error. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> |
||
---|---|---|
.. | ||
checksum.c | ||
checksum.h | ||
dump.c | ||
dump.h | ||
queue.c | ||
queue.h | ||
slirp.c | ||
slirp.h | ||
socket.c | ||
socket.h | ||
tap-aix.c | ||
tap-bsd.c | ||
tap-haiku.c | ||
tap-linux.c | ||
tap-linux.h | ||
tap-solaris.c | ||
tap-win32.c | ||
tap.c | ||
tap.h | ||
util.c | ||
util.h | ||
vde.c | ||
vde.h |