Re: Free memory from list

"Nikos Balkanas" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <FD3D84668B0947DB9C0E29853B4E0B61@drwho>
For individual items use:

item = gwlist_consume(my_list)

<free item>

Nikos
  ----- Original Message ----- 
  From: Nikos Balkanas 
  To: Esteban Cacavelos ; Donald Jackson 
  Cc: devel Devel 
  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 
    To: Donald Jackson 
    Cc: devel Devel 
    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
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.