cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Memory leak in libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Dec 2008 22:56:36 +0100 (CET)

On Mon, 22 Dec 2008, Huzaifa Al Nahas wrote:

> The memory leak reported by VC++ _CrtDumpMemoryLeaks() is probably
> due to the same issue because it only occurs when curl is built with
> OPENSSL support. Although the memory leak is not significantly harmful
> as it does not grow

If the memory doesn't grow, how is it harmful in _any_ way? I'm convinced
OpenSSL needs the memory it allocates so it has to be used at some point. The
only thing you miss with this leak is the ability to free (and thus re-use)
that memory before your application exists. Calling that "harmful" feels like
a strong word to me considering the amount of memory is only a few kilobytes.

But I fully agree that the fault for this is OpenSSL's hands.

-- 
  / daniel.haxx.se
Received on 2008-12-22