From 1c2d10d358c0c6d3327582a9565cf60a1f2e2a82 Mon Sep 17 00:00:00 2001 From: Steve Muir Date: Mon, 7 Nov 2005 20:11:50 +0000 Subject: [PATCH] Need to close the cwd file descriptor --- python/vduimpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/python/vduimpl.c b/python/vduimpl.c index fb219ff..2191826 100644 --- a/python/vduimpl.c +++ b/python/vduimpl.c @@ -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); -- 2.47.0