IPTV: fix a memory leak introduced in last commits
This commit is contained in:
parent
cbffd47ad2
commit
247848fd53
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue