Commit b9704c0b authored by Thomas Guillem's avatar Thomas Guillem

file: fix fd leak when opening a directory

parent 21fd5869
......@@ -205,6 +205,7 @@ int FileOpen( vlc_object_t *p_this )
if (S_ISDIR (st.st_mode))
{
#ifdef HAVE_FDOPENDIR
close(fd);
return DirOpen (VLC_OBJECT(p_access));
#else
msg_Dbg (p_access, "ignoring directory");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment