Browse Source

livehttp: fix psz_keyfile and key_uri leak

(cherry picked from commit dc90c38045)
cherry-pick-c5513cf9
Johannes Kauffmann 11 months ago
committed by Rémi Denis-Courmont
parent
commit
2cb79f83df
  1. 4
      modules/access_output/livehttp.c

4
modules/access_output/livehttp.c

@ -282,6 +282,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 );
@ -290,6 +292,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 );
@ -817,6 +820,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