epggrab: fix a memory leak for ota mux

This commit is contained in:
Jaroslav Kysela 2014-06-28 21:29:41 +02:00
parent e164752754
commit 940da633dc

View file

@ -479,12 +479,18 @@ static void
epggrab_ota_free ( epggrab_ota_mux_t *ota )
{
epggrab_ota_map_t *map;
epggrab_ota_svc_link_t *svcl;
LIST_REMOVE(ota, om_q_link);
while ((map = LIST_FIRST(&ota->om_modules)) != NULL) {
LIST_REMOVE(map, om_link);
free(map);
}
while ((svcl = RB_FIRST(&ota->om_svcs)) != NULL) {
RB_REMOVE(&ota->om_svcs, svcl, link);
free(svcl->uuid);
free(svcl);
}
free(ota->om_mux_uuid);
free(ota);
}