Thanks for the recommendation . The memory leak was in other place (results of mysql query), so, the list items are correctly freed.
valgrind was very usefull . Thanks again. 2010/2/23 Nikos Balkanas <nbalka...@gmail.com> > For individual items use: > > item = gwlist_consume(my_list) > > <free item> > > Nikos > > ----- Original Message ----- > *From:* Nikos Balkanas <nbalka...@gmail.com> > *To:* Esteban Cacavelos <estebancacave...@gmail.com> ; Donald > Jackson<donaldjs...@gmail.com> > *Cc:* devel Devel <devel@kannel.org> > *Sent:* Tuesday, February 23, 2010 4:21 PM > *Subject:* Re: Free memory from list > > Listed code is right (without loops). You are leaking memory somewhere > else. Check with valgrind. > > BR, > Nikos > > ----- Original Message ----- > *From:* Esteban Cacavelos <estebancacave...@gmail.com> > *To:* Donald Jackson <donaldjs...@gmail.com> > *Cc:* devel Devel <devel@kannel.org> > *Sent:* Tuesday, February 23, 2010 3:39 PM > *Subject:* Re: Free memory from list > > Thanks, but, I actually want to delete items from the list dinamically. I > want to delete one item from list and free that item correctly, not delete > all items at the same time. > > > > > > -- > Esteban L. Cacavelos de Amoriza > Cel: 0981 220 429 > > -- Esteban L. Cacavelos de Amoriza Cel: 0981 220 429