From 7105dc8d8b8889467b34cea6b24ea94f97642396 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Sat, 20 Nov 2010 22:54:20 +0000 Subject: [PATCH] oops didnt close dir fd --- lsyncd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lsyncd.c b/lsyncd.c index b794570..c199c5c 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -957,6 +957,7 @@ l_readdir (lua_State *L) lua_pushboolean(L, isdir); lua_settable(L, -3); } + closedir(d); return 1; }