mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 15:48:20 +00:00
sheepdog: don't leak socket file descriptor upon connection failure
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit a7e47d4bfc
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
committed by
Michael Roth
parent
df60f451b3
commit
b68e45c686
@ -489,6 +489,7 @@ static int connect_to_sdog(const char *addr, const char *port)
|
|||||||
if (errno == EINTR) {
|
if (errno == EINTR) {
|
||||||
goto reconnect;
|
goto reconnect;
|
||||||
}
|
}
|
||||||
|
close(fd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user