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

git version control git at videolan.org
Thu May 14 23:21:13 CEST 2009


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

mmsh: fix potential memleak
(cherry picked from commit 5cc974b1a4bb383006a380d4c9e0011e47cefde1)

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

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

 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