epggrab: fix a memory leak for ota mux
This commit is contained in:
parent
e164752754
commit
940da633dc
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue