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

Reply via email to