[vlc-devel] commit: mmstu: fix memleak (Jean-Paul Saman )

git version control git at videolan.org
Thu May 14 20:08:53 CEST 2009


vlc | branch: 1.0-bugfix | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue May 12 16:55:26 2009 +0200| [9b9e019a3a662b6d6dc3565c65c1384a67079bf6] | committer: Jean-Baptiste Kempf 

mmstu: fix memleak
(cherry picked from commit ecfdb8c3ca6c1803cf055dcac440ec7ca1a8a9c3)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b9e019a3a662b6d6dc3565c65c1384a67079bf6
---

 modules/access/mms/mmstu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
index f0d600f..4a860fd 100644
--- a/modules/access/mms/mmstu.c
+++ b/modules/access/mms/mmstu.c
@@ -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;
     }




More information about the vlc-devel mailing list