[vlc-commits] sd: upnp: parseSatipServer: prevent leak

Filip Roséen git at videolan.org
Tue Jul 31 14:54:48 CEST 2018


vlc | branch: master | Filip Roséen <filip at atch.se> | Tue Jul 31 14:44:05 2018 +0200| [413cb87b73eaa20c78a92436a99c92b529696be6] | committer: Hugo Beauzée-Luyssen

sd: upnp: parseSatipServer: prevent leak

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=413cb87b73eaa20c78a92436a99c92b529696be6
---

 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 b72ad208a1..d3033b4b90 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -587,6 +587,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;



More information about the vlc-commits mailing list