Re: Initialising OpenSSL more than once - how do we handle this?
> On Jul 31, 2018, at 4:59 AM, Matt Caswell <[hidden email]> 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.