]> git.sesse.net Git - vlc/commitdiff
upnp_intel: fix potential memleak.
authorRémi Duraffort <ivoire@videolan.org>
Wed, 14 Jan 2009 18:57:46 +0000 (19:57 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 14 Jan 2009 20:07:10 +0000 (21:07 +0100)
modules/services_discovery/upnp_intel.cpp

index 45749e0cc9e598c29b2cc22552a8a516a5844873..fdae66aa295bcbcf642f332110161fbfbea8ec4e 100644 (file)
@@ -94,6 +94,7 @@ static int Open( vlc_object_t *p_this )
     if( res != UPNP_E_SUCCESS )
     {
         msg_Err( p_sd, "%s", UpnpGetErrorMessage( res ) );
+        free( p_sys );
         return VLC_EGENERIC;
     }