]> git.sesse.net Git - vlc/commitdiff
mmstu: fix memleak
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 12 May 2009 14:55:26 +0000 (16:55 +0200)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 14 May 2009 07:22:58 +0000 (09:22 +0200)
modules/access/mms/mmstu.c

index f0d600f774844b87dc3e72363d6beb6050f956e8..4a860fd889ddba5b01b2f0da5176c7e783c3518f 100644 (file)
@@ -1035,6 +1035,7 @@ static int mms_CommandSend( access_t *p_access, int i_command,
     vlc_mutex_unlock( &p_sys->lock_netwrite );
     if( i_ret != buffer.i_data - ( 8 - ( i_data - i_data_old ) ) )
     {
+        var_buffer_free( &buffer );
         msg_Err( p_access, "failed to send command" );
         return VLC_EGENERIC;
     }