mmsh: fix potential memleak
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 12 May 2009 12:18:36 +0000 (14:18 +0200)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 14 May 2009 07:22:58 +0000 (09:22 +0200)
modules/access/mms/mmsh.c

index 95bbdea..1cf4e8b 100644 (file)
@@ -172,6 +172,9 @@ int MMSHOpen( access_t *p_access )
 
         if( !p_input )
         {
 
         if( !p_input )
         {
+            vlc_UrlClean( &p_sys->proxy );
+            vlc_UrlClean( &p_sys->url );
+            free( p_sys );
             free( psz_location );
             return VLC_EGENERIC;
         }
             free( psz_location );
             return VLC_EGENERIC;
         }