Re: Free memory from list

Esteban Cacavelos <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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 <[email protected]>

>  For individual items use:
>
> item = gwlist_consume(my_list)
>
> <free item>
>
> Nikos
>
> ----- Original Message -----
> *From:* Nikos Balkanas <[email protected]>
> *To:* Esteban Cacavelos <[email protected]> ; Donald Jackson<[email protected]>
> *Cc:* devel Devel <[email protected]>
> *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 <[email protected]>
> *To:* Donald Jackson <[email protected]>
> *Cc:* devel Devel <[email protected]>
> *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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.