浏览代码

rootwrap: file descriptor leak

Rémi Denis-Courmont 11 年之前
父节点
当前提交
a8dffdef8b
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);
     }