Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IPTV: fix muxname leak in iptv mux class
  • Loading branch information
perexg committed Oct 21, 2014
1 parent a0d7d97 commit 7d87d20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/input/mpegts/iptv/iptv_mux.c
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 7d87d20

Please sign in to comment.