[openssl-users] Initialising OpenSSL more than once - how do we handle this?

Viktor Dukhovni openssl-users at dukhovni.org
Wed Aug 1 14:00:01 UTC 2018



> On Jul 31, 2018, at 4:59 AM, Matt Caswell <matt at openssl.org> wrote:
> 
> To be clear I can only think of one leak that we have at process exit
> (well technically its two instances of the same thing). And that leak is
> not the result of a *mistake*. It is a deliberate design decision to
> workaround around a problem on some platforms (i.e. anything that isn't
> Windows, Linux or Solaris, IIRC).

There's at least one more, we don't call X509_PURPOSE_cleanup(), without
which we leak memory allocated via X509_PURPOSE_add().  There may be other
static allocations that the test suite does not exercise.

-- 
	Viktor.



More information about the openssl-users mailing list