# HG changeset patch # User nicodvb # Date 1197752818 0 # Node ID cd65c1242675aea516bcad525b5bce936d994edf # Parent 57c207e33831c7ab53368bab1dcde747e38c9b7e 10l, in dvb_free_config() channels' names must be free individually diff -r 57c207e33831 -r cd65c1242675 stream/stream_dvb.c --- a/stream/stream_dvb.c Sat Dec 15 19:17:36 2007 +0000 +++ b/stream/stream_dvb.c Sat Dec 15 21:06:58 2007 +0000 @@ -426,7 +426,7 @@ void dvb_free_config(dvb_config_t *config) { - int i; + int i, j; for(i=0; icount; i++) { @@ -436,8 +436,11 @@ continue; if(config->cards[i].list->channels) { - if(config->cards[i].list->channels->name) - free(config->cards[i].list->channels->name); + for(j=0; jcards[i].list->NUM_CHANNELS; j++) + { + if(config->cards[i].list->channels[j].name) + free(config->cards[i].list->channels[j].name); + } free(config->cards[i].list->channels); } free(config->cards[i].list);