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
leaks.
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html