curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl leaks information in freed memory

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 22 Oct 2018 15:24:44 +0200 (CEST)

On Mon, 22 Oct 2018, Gabriel Zachmann via curl-library wrote:

>> Actually would be possible to allow an application to supply an
>> allocator and deallocator callbacks to libcurl via an option?
>
> Sure. I don't know why I forgot about that option. I like that way and think
> that's the way to go.

curl_global_init_mem -
https://curl.haxx.se/libcurl/c/curl_global_init_mem.html

I suppose what could still be looked into further is if/where we keep data
around longer than we need to before we free it.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-22