cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Stupid question about callbacks

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 24 Aug 2004 14:11:00 +0200 (CEST)

On Tue, 24 Aug 2004, Brian Akins wrote:

> Who "owns" the memory pointed to by ptr, the callback or the curl_handle?
> Does the callback need to free it or does it always need to memcpy it.

The data MUST be copied and it MUST NOT be freed.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-24