cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_global_init_mem and libcurl code

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 10 Jan 2005 20:35:46 +0100 (CET)

On Mon, 10 Jan 2005, Pavel Orehov wrote:

> For example in lib/url.c in function Curl_open, i see two mallocs and one
> realloc that activated directlly. May be i am wrong, please explain.

"memory.h" is included in the top of the lib/url.c file. The memory.h header
defines malloc() and realloc() and others to use function pointers instead.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-01-10