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:
parent
17323fb840
commit
cfcb868669
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user