diff options
author | William Woodruff <william@tuffbizz.com> | 2017-01-16 16:31:23 -0500 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-17 08:22:13 +0100 |
commit | a4cdd8bb823dbb8f981a4b5efcfcb0f9d118844e (patch) | |
tree | 64bdb39075bb7ffb2d4459bf306f57435c132572 /player | |
parent | 9850932722eb252fcf685080f14edd8b10c8685e (diff) | |
download | mpv-a4cdd8bb823dbb8f981a4b5efcfcb0f9d118844e.tar.bz2 mpv-a4cdd8bb823dbb8f981a4b5efcfcb0f9d118844e.tar.xz |
lua: close directory after reading its entries
Fixes #4045.
Diffstat (limited to 'player')
-rw-r--r-- | player/lua.c | 1 |
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; } |