From ccc7ce914e248ae8a73cbb5be7b86e37d70fe4d2 Mon Sep 17 00:00:00 2001 From: Flole Date: Sat, 9 Aug 2025 19:28:21 +0200 Subject: [PATCH] Fix memory leak in iptv.c --- src/input/mpegts/iptv/iptv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input/mpegts/iptv/iptv.c b/src/input/mpegts/iptv/iptv.c index b1efb0b21..17d2c2701 100644 --- a/src/input/mpegts/iptv/iptv.c +++ b/src/input/mpegts/iptv/iptv.c @@ -384,6 +384,7 @@ iptv_input_start_mux ( mpegts_input_t *mi, mpegts_mux_instance_t *mmi, int weigh if (urlparse(raw ?: "", &url)) { tvherror(LS_IPTV, "%s - invalid URL [%s]", im->mm_nicename, raw); + urlreset(&url); return ret; } scheme = url.scheme; @@ -394,6 +395,7 @@ iptv_input_start_mux ( mpegts_input_t *mi, mpegts_mux_instance_t *mmi, int weigh ih = iptv_handler_find(scheme ?: ""); if (!ih) { tvherror(LS_IPTV, "%s - unsupported scheme [%s]", im->mm_nicename, scheme ?: "none"); + urlreset(&url); return ret; } -- 2.47.2