From: Flole Date: Sat, 9 Aug 2025 17:28:21 +0000 (+0200) Subject: Fix memory leak in iptv.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=thirdparty%2Ftvheadend.git Fix memory leak in iptv.c --- 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; }