Przeglądaj źródła

rootwrap: file descriptor leak

Rémi Denis-Courmont 11 lat temu
rodzic
commit
a8dffdef8b
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      bin/rootwrap.c

+ 1 - 0
bin/rootwrap.c

@@ -172,6 +172,7 @@ static void rootprocess (int fd)
                 close (sock);
                 continue;
             }
+            close (sock);
         }
         send_err (fd, errno);
     }