[vlc-devel] [PATCH] sd: upnp: parseSatipServer: prevent leak

Filip Roséen filip at atch.se
Tue Jul 31 14:44:05 CEST 2018


---
 modules/services_discovery/upnp.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 14778cd2fa..021ca75556 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -590,6 +590,7 @@ MediaServerList::parseSatipServer( IXML_Element* p_device_element, const char *p
             }
 
             /* to comply with the SAT>IP specification, we don't fall back on another channel list if this path failed */
+            free( psz_satip_channellist );
             free( psz_satip_playlist_url );
             vlc_UrlClean( &url );
             return;
-- 
2.18.0


More information about the vlc-devel mailing list