1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

directory: close fd before return

This commit is contained in:
Derk-Jan Hartman 2008-10-12 15:18:19 +02:00
parent 17323fb840
commit cfcb868669

View File

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