Commit 9b9e019a authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Baptiste Kempf

mmstu: fix memleak

(cherry picked from commit ecfdb8c3)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9f0df8af
...@@ -1035,6 +1035,7 @@ static int mms_CommandSend( access_t *p_access, int i_command, ...@@ -1035,6 +1035,7 @@ static int mms_CommandSend( access_t *p_access, int i_command,
vlc_mutex_unlock( &p_sys->lock_netwrite ); vlc_mutex_unlock( &p_sys->lock_netwrite );
if( i_ret != buffer.i_data - ( 8 - ( i_data - i_data_old ) ) ) if( i_ret != buffer.i_data - ( 8 - ( i_data - i_data_old ) ) )
{ {
var_buffer_free( &buffer );
msg_Err( p_access, "failed to send command" ); msg_Err( p_access, "failed to send command" );
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