Port changes to release branch
[util-vserver.git] / python / vduimpl.c
index fb219ff..2191826 100644 (file)
@@ -549,6 +549,7 @@ do_vdu(PyObject *self, PyObject *args)
        cwd_fd = open(".", O_RDONLY);
        res = vdu_onedir(&tbl, &s, path);
        fchdir(cwd_fd);
+       close(cwd_fd);
 
        /* deallocate whatever has been added to tbl */
        Dispose(&tbl);