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

git version control git at videolan.org
Thu May 14 13:09:10 CEST 2009


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue May 12 14:18:36 2009 +0200| [5cc974b1a4bb383006a380d4c9e0011e47cefde1] | committer: Jean-Paul Saman 

mmsh: fix potential memleak

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

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

diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index 95bbdea..1cf4e8b 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -172,6 +172,9 @@ int MMSHOpen( access_t *p_access )
 
         if( !p_input )
         {
+            vlc_UrlClean( &p_sys->proxy );
+            vlc_UrlClean( &p_sys->url );
+            free( p_sys );
             free( psz_location );
             return VLC_EGENERIC;
         }




More information about the vlc-devel mailing list