From 7d87d20d03d31af250a04a0c8b38bcb20d76b462 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 21 Oct 2014 13:39:22 +0200 Subject: [PATCH] IPTV: fix muxname leak in iptv mux class --- src/input/mpegts/iptv/iptv_mux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/iptv/iptv_mux.c b/src/input/mpegts/iptv/iptv_mux.c index ef088c91..76fd2adf 100644 --- a/src/input/mpegts/iptv/iptv_mux.c +++ b/src/input/mpegts/iptv/iptv_mux.c @@ -145,7 +145,7 @@ iptv_mux_config_save ( mpegts_mux_t *mm ) static void iptv_mux_delete ( mpegts_mux_t *mm, int delconf ) { - char *url, *url_sane; + char *url, *url_sane, *muxname; iptv_mux_t *im = (iptv_mux_t*)mm; if (delconf) @@ -155,11 +155,13 @@ iptv_mux_delete ( mpegts_mux_t *mm, int delconf ) url = im->mm_iptv_url; // Workaround for silly printing error url_sane = im->mm_iptv_url_sane; + muxname = im->mm_iptv_muxname; free(im->mm_iptv_interface); free(im->mm_iptv_svcname); mpegts_mux_delete(mm, delconf); free(url); free(url_sane); + free(muxname); } static void