From 940da633dcf27ba47fadb05b9a12d33f9ca99e39 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 28 Jun 2014 21:29:41 +0200 Subject: [PATCH] epggrab: fix a memory leak for ota mux --- src/epggrab/otamux.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index 015bd451..d1398b47 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -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); }