Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epggrab: channels - fix another leaks in epggrab_channel_destroy()
  • Loading branch information
perexg committed Oct 21, 2014
1 parent ace1b95 commit 15db6d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/epggrab/channel.c
Expand Up @@ -233,6 +233,8 @@ void epggrab_channel_destroy
while ((ecl = LIST_FIRST(&ec->channels)) != NULL)
epggrab_channel_link_delete(ecl, delconf);
RB_REMOVE(tree, ec, link);
free(ec->name);
free(ec->icon);
free(ec->id);
free(ec);
}
Expand Down
6 changes: 3 additions & 3 deletions src/epggrab/module.c
Expand Up @@ -200,9 +200,9 @@ static void _epggrab_module_channel_load
htsmsg_t *a;
htsmsg_field_t *f;
channel_t *ch;

epggrab_channel_t *egc
= epggrab_channel_find(mod->channels, id, 1, &save, mod);
epggrab_channel_t *egc;

egc = epggrab_channel_find(mod->channels, id, 1, &save, mod);

if ((str = htsmsg_get_str(m, "name")))
egc->name = strdup(str);
Expand Down

0 comments on commit 15db6d1

Please sign in to comment.