Browse Source

livehttp: fix psz_keyfile and key_uri leak

pull/188/head
Johannes Kauffmann 10 months ago
committed by Steve Lhomme
parent
commit
dc90c38045
  1. 4
      modules/access_output/livehttp.c

4
modules/access_output/livehttp.c

@ -278,6 +278,8 @@ static int Open( vlc_object_t *p_this )
if( p_sys->psz_keyfile && ( LoadCryptFile( p_access ) < 0 ) )
{
free( p_sys->key_uri );
free( p_sys->psz_keyfile );
free( p_sys->psz_indexUrl );
free( p_sys->psz_indexPath );
free( p_sys );
@ -286,6 +288,7 @@ static int Open( vlc_object_t *p_this )
}
else if( !p_sys->psz_keyfile && ( CryptSetup( p_access, NULL ) < 0 ) )
{
free( p_sys->key_uri );
free( p_sys->psz_indexUrl );
free( p_sys->psz_indexPath );
free( p_sys );
@ -813,6 +816,7 @@ static void Close( vlc_object_t * p_this )
destroySegment( segment );
}
free( p_sys->psz_keyfile );
free( p_sys->psz_indexUrl );
free( p_sys->psz_indexPath );
free( p_sys );

Loading…
Cancel
Save