pyca/pyopenssl — pull request #74 by jgiannuzzi (2014-03-20 15:09:37+00:00)
Title: Fix crl memory leak

In OpenSSL.crypto._X509_REVOKED_dup, the call to X509_REVOKED_new() will create two empty ASN1 structures that were never freed, but simply replaced by a copy.
When doing multiple calls to CRL.get_revoked() on a big CRL, this results in a huge memory leak.
This change adds two calls to free those empty ASN1 structures before replacing them with the copy.

This change requires pyca/cryptography#830 in order to work.