Found by coverity. Signed-off-by: Uri Lublin <uril@xxxxxxxxxx> --- server/reds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/reds.c b/server/reds.c index 325af5e8b..e7b95980a 100644 --- a/server/reds.c +++ b/server/reds.c @@ -2588,6 +2588,7 @@ static int reds_init_socket(const char *addr, int portnr, int family) len = SUN_LEN(&local); if (bind(slisten, (struct sockaddr *)&local, len) == -1) { perror("bind"); + close(slisten); return -1; } -- 2.14.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel