mmsh: fix potential memleak
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 12 May 2009 12:18:36 +0000 (14:18 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 14 May 2009 16:58:54 +0000 (18:58 +0200)
(cherry picked from commit 5cc974b1a4bb383006a380d4c9e0011e47cefde1)

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

index 95bbdea..1cf4e8b 100644 (file)
@@ -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;
         }