cURL / Mailing Lists / curl-library / Single Mail

curl-library

Properly free()'ing memory after using CURLOPT_WRITEFUNCTION

From: Joel Apter <japter_at_ibxtech.com>
Date: Fri, 30 May 2003 16:57:44 -0400

After looking at the example given in docs/examples/getinmemory.c in the curl directory, I was wondering what the proper syntax and usage of free() would be to release this memory efficiently after it has been used (free(chunk.memory); ?).

I am not very familiar with this type of memory handling in C. Thank you for your help.

-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-01