Commit cfcb8686 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

directory: close fd before return

parent 17323fb8
......@@ -147,7 +147,10 @@ static int Open( vlc_object_t *p_this )
p_sys = malloc (sizeof (*p_sys));
if (!p_sys)
{
closedir( handle );
return VLC_ENOMEM;
}
p_access->p_sys = p_sys;
p_sys->current = NULL;
......
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