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

SAP: remotely trigerrable memory leak (CID #70)

parent e39b4a1a
......@@ -808,7 +808,11 @@ static int ParseSAP( services_discovery_t *p_sd, const uint8_t *buf,
p_sdp->psz_uri = NULL;
}
if( p_sdp->psz_uri == NULL ) return VLC_EGENERIC;
if( p_sdp->psz_uri == NULL )
{
FreeSDP( p_sdp );
return VLC_EGENERIC;
}
for( i = 0 ; i< p_sd->p_sys->i_announces ; i++ )
{
......
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