cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: memory leak? help needed

From: amit vidyarthi <whoisamitkumar_at_yahoo.com>
Date: Wed, 11 Oct 2006 23:19:22 -0700 (PDT)

hi,
   
    I would like to suggest u that make class to do some job... for example u want do download a file, so in the class allocate memory in constructor and free it in destructor... so if u want to use this property u can just create an object and u don’t have to bother about memory. it will get freed as its scope gets over. This will help u to manage the memory...
   
  Regards,
  Amit Kumar V
   

                 
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
Received on 2006-10-12