Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IPTV: fix a memory leak introduced in last commits
  • Loading branch information
perexg committed Aug 1, 2014
1 parent cbffd47 commit 247848f
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 @@ -129,7 +129,7 @@ iptv_mux_config_save ( mpegts_mux_t *mm )
static void
iptv_mux_delete ( mpegts_mux_t *mm, int delconf )
{
char *url;
char *url, *url_sane;
iptv_mux_t *im = (iptv_mux_t*)mm;

if (delconf)
Expand All @@ -138,10 +138,12 @@ iptv_mux_delete ( mpegts_mux_t *mm, int delconf )
idnode_uuid_as_str(&mm->mm_id));

url = im->mm_iptv_url; // Workaround for silly printing error
url_sane = im->mm_iptv_url_sane;
free(im->mm_iptv_interface);
free(im->mm_iptv_svcname);
mpegts_mux_delete(mm, delconf);
free(url);
free(url_sane);
}

static void
Expand Down

0 comments on commit 247848f

Please sign in to comment.