cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl_close memory leak

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 18 Jul 2014 22:50:31 +0200 (CEST)

On Wed, 16 Jul 2014, Алексей Комнин wrote:

> While investigating a memory leak in our application, I discovered that
> connectdata allocated in Curl_connect does not freed in Curl_close.
>
> It seems like conn_free should be called in Curl_close. Please take a look
> at the patch attached.

No, really don't think this is a correct fix. 'lastconnect' is just a pointer
to the most recently used connection struct, it is not meant to be cleaned up.

Can you show us a way to repeat this memory leak you speak of?

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-18