Commit 73b7ed7f authored by Rémi Duraffort's avatar Rémi Duraffort

access_out_shoutcast: fix memleak.

parent aee70031
...@@ -275,10 +275,10 @@ static int Open( vlc_object_t *p_this ) ...@@ -275,10 +275,10 @@ static int Open( vlc_object_t *p_this )
if( psz_val ) if( psz_val )
{ {
i_ret = shout_set_audio_info( p_shout, SHOUT_AI_BITRATE, psz_val ); i_ret = shout_set_audio_info( p_shout, SHOUT_AI_BITRATE, psz_val );
free( psz_val );
if( i_ret != SHOUTERR_SUCCESS ) if( i_ret != SHOUTERR_SUCCESS )
{ {
msg_Err( p_access, "failed to set the information about the bitrate" ); msg_Err( p_access, "failed to set the information about the bitrate" );
free( psz_val );
free( p_access->p_sys ); free( p_access->p_sys );
free( psz_accessname ); free( psz_accessname );
return VLC_EGENERIC; return VLC_EGENERIC;
...@@ -300,10 +300,10 @@ static int Open( vlc_object_t *p_this ) ...@@ -300,10 +300,10 @@ static int Open( vlc_object_t *p_this )
if( psz_val ) if( psz_val )
{ {
i_ret = shout_set_audio_info( p_shout, SHOUT_AI_SAMPLERATE, psz_val ); i_ret = shout_set_audio_info( p_shout, SHOUT_AI_SAMPLERATE, psz_val );
free( psz_val );
if( i_ret != SHOUTERR_SUCCESS ) if( i_ret != SHOUTERR_SUCCESS )
{ {
msg_Err( p_access, "failed to set the information about the samplerate" ); msg_Err( p_access, "failed to set the information about the samplerate" );
free( psz_val );
free( p_access->p_sys ); free( p_access->p_sys );
free( psz_accessname ); free( psz_accessname );
return VLC_EGENERIC; return VLC_EGENERIC;
...@@ -314,10 +314,10 @@ static int Open( vlc_object_t *p_this ) ...@@ -314,10 +314,10 @@ static int Open( vlc_object_t *p_this )
if( psz_val ) if( psz_val )
{ {
i_ret = shout_set_audio_info( p_shout, SHOUT_AI_CHANNELS, psz_val ); i_ret = shout_set_audio_info( p_shout, SHOUT_AI_CHANNELS, psz_val );
free( psz_val );
if( i_ret != SHOUTERR_SUCCESS ) if( i_ret != SHOUTERR_SUCCESS )
{ {
msg_Err( p_access, "failed to set the information about the number of channels" ); msg_Err( p_access, "failed to set the information about the number of channels" );
free( psz_val );
free( p_access->p_sys ); free( p_access->p_sys );
free( psz_accessname ); free( psz_accessname );
return VLC_EGENERIC; return VLC_EGENERIC;
...@@ -328,10 +328,10 @@ static int Open( vlc_object_t *p_this ) ...@@ -328,10 +328,10 @@ static int Open( vlc_object_t *p_this )
if( psz_val ) if( psz_val )
{ {
i_ret = shout_set_audio_info( p_shout, SHOUT_AI_QUALITY, psz_val ); i_ret = shout_set_audio_info( p_shout, SHOUT_AI_QUALITY, psz_val );
free( psz_val );
if( i_ret != SHOUTERR_SUCCESS ) if( i_ret != SHOUTERR_SUCCESS )
{ {
msg_Err( p_access, "failed to set the information about Ogg Vorbis quality" ); msg_Err( p_access, "failed to set the information about Ogg Vorbis quality" );
free( psz_val );
free( p_access->p_sys ); free( p_access->p_sys );
free( psz_accessname ); free( psz_accessname );
return VLC_EGENERIC; return VLC_EGENERIC;
......
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