Commit b4d33fe5 authored by Rémi Duraffort's avatar Rémi Duraffort

input: fix memory leak if access is not found

parent fb0c517c
...@@ -340,7 +340,10 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list ) ...@@ -340,7 +340,10 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
access_t *p_tmp = access_New( p_access, p_access->p_input, access_t *p_tmp = access_New( p_access, p_access->p_input,
p_access->psz_access, "", psz_name ); p_access->psz_access, "", psz_name );
if( !p_tmp ) if( !p_tmp )
{
free( psz_name );
continue; continue;
}
p_entry = malloc( sizeof(*p_entry) ); p_entry = malloc( sizeof(*p_entry) );
if( p_entry ) if( p_entry )
......
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