diff --git a/Modules/_ssl.c b/Modules/_ssl.c index ecd081e726a..8eb9a1e95c8 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -977,6 +977,7 @@ PySSL_test_decode_certificate (PyObject *mod, PyObject *args) { } retval = _decode_certificate(x, verbose); + X509_free(x); fail0: