curl-library
Re: New with C++ and libcurl; getting massive memory leak
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Apr 2007 13:27:49 +0200 (CEST)
Date: Tue, 3 Apr 2007 13:27:49 +0200 (CEST)
On Tue, 3 Apr 2007, Torch wrote:
> curl = curl_easy_init();
[...]
> curl_free(curl);
This is completely wrong. curl_easy_cleanup() that handle.
> and the memory usage has went down immensly, namely now it just increases by
> 5 to 75kb on each request instead of 1 to 5mb.
I didn't spot the difference.
But isn't the "5 to 75kb" simply the response body size that you append to the
buffer?
Since you have a tool that detects memory leaks, can't it pinpoint _where_ the
allocations are made?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-04-03