mmsh: fix potential memleak
[vlc.git] / 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;
         }