Commit bf4d99af authored by Arjun Sreedharan's avatar Arjun Sreedharan Committed by Rémi Denis-Courmont

stream: fix possible memory leak

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 80afc8a7
......@@ -200,6 +200,7 @@ stream_t *stream_AccessNew( access_t *p_access )
s->p_sys = p_sys = malloc( sizeof( *p_sys ) );
if( !s->psz_url || !s->p_sys )
{
free( s->p_sys );
stream_CommonDelete( s );
return 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