- Fix memory leak - dtf in tda->tda_table_feed queue, malloc'd in dvb_adapter.c - line 1115 was not free'd
(cherry picked from commit 901473d7e7
)
This commit is contained in:
parent
1bfa5f9d09
commit
5f8782417d
1 changed files with 3 additions and 1 deletions
|
@ -315,8 +315,10 @@ dvb_fe_stop(th_dvb_mux_instance_t *tdmi, int retune)
|
|||
|
||||
dvb_adapter_stop(tda, TDA_OPT_DVR);
|
||||
pthread_mutex_lock(&tda->tda_delivery_mutex);
|
||||
while((dtf = TAILQ_FIRST(&tda->tda_table_feed)))
|
||||
while((dtf = TAILQ_FIRST(&tda->tda_table_feed))) {
|
||||
TAILQ_REMOVE(&tda->tda_table_feed, dtf, dtf_link);
|
||||
free(dtf);
|
||||
}
|
||||
pthread_mutex_unlock(&tda->tda_delivery_mutex);
|
||||
dvb_table_flush_all(tdmi);
|
||||
tda->tda_locked = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue