Commit ce0b5da9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix handle leak

parent be24a28f
...@@ -139,6 +139,7 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root, ...@@ -139,6 +139,7 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root,
if( i_dirlen + 10 > MAX_DIR_SIZE ) if( i_dirlen + 10 > MAX_DIR_SIZE )
{ {
msg_Warn( p_intf, "skipping too deep directory (%s)", psz_dir ); msg_Warn( p_intf, "skipping too deep directory (%s)", psz_dir );
closedir( p_dir );
return 0; return 0;
} }
......
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