summaryrefslogtreecommitdiffstats
path: root/player/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/lua.c')
-rw-r--r--player/lua.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/lua.c b/player/lua.c
index ce9387bdae..62f42baea1 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -1079,6 +1079,7 @@ static int script_readdir(lua_State *L)
lua_pushstring(L, name); // list index name
lua_settable(L, -3); // list
}
+ closedir(dir);
talloc_free(fullpath);
return 1;
}