cURL / Mailing Lists / curl-library / Single Mail


Re: Memory management in libcurl

From: Daniel Stenberg <>
Date: Sat, 17 Oct 2009 21:49:26 +0200 (CEST)

On Fri, 16 Oct 2009, Krishna Chaithanya Muthyala wrote:

> I have a libcurl client which does an HTTP POST many times before the
> program exits. I wanted to know how the memory management works in libcurl.
> I have observed that some memory is being used for the first HTTP POST and
> not getting released. But no further memory is used for the succeeding HTTP
> POSTs.

Right, libcurl has a few caches and buffers that can grow.

> Are there any known leaks in libcurl while doing an HTTP POST?

No. Not in recent versions at least. But your description doesn't show a leak
either, so why the concern?

And I do recommend using valgrind to find, test for and track down memory

List admin:
Received on 2009-10-17