mmstu: fix memleak
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 12 May 2009 14:55:26 +0000 (16:55 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 14 May 2009 16:59:04 +0000 (18:59 +0200)
(cherry picked from commit ecfdb8c3ca6c1803cf055dcac440ec7ca1a8a9c3)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/mms/mmstu.c

index f0d600f..4a860fd 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;
     }