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

Filip Roséen git at videolan.org
Wed Aug 1 13:19:09 CEST 2018


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

sd: upnp: parseSatipServer: prevent leak

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
(cherry picked from commit 413cb87b73eaa20c78a92436a99c92b529696be6)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=92a5852dd4c8d5d0489d8c3ca12a8aa7e70c4940
---

 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 914f4c7470..2f2e99f32e 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -615,6 +615,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