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; }