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>
diff --git a/block/sheepdog.c b/block/sheepdog.c index a04ad99..df4f441 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c
@@ -485,6 +485,7 @@ if (errno == EINTR) { goto reconnect; } + close(fd); break; }