cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: memeory leak, was: --interface dumps core

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 9 Oct 2000 09:21:33 +0200 (MET DST)

On Mon, 9 Oct 2000, Georg Horn wrote:

> The memory usage of the following C program still grows slowly.

Ok, thanks for the code. I'll try to get some kind of memory-debugger in
place to figure this out.

> If i put the loop just around the curl_easy_perform() call, it even grows
> quicker.

That would be a usage error. You should never call curl_easy_perform() twice
on the same handle without doing a cleanup() and init() again. The cleanup()
function is doing a lot of the actual cleanups! ;-)

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
Received on 2000-10-09