[issue29870] ssl socket leak
Antoine Pitrou
report at bugs.python.org
Tue Apr 11 13:57:35 EDT 2017
Antoine Pitrou added the comment:
The following addition fixes the leak:
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index bb40051..8f5facd 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -1203,6 +1203,8 @@ _get_crl_dp(X509 *certificate) {
Py_XDECREF(lst);
#if OPENSSL_VERSION_NUMBER < 0x10001000L
sk_DIST_POINT_free(dps);
+#else
+ CRL_DIST_POINTS_free(dps);
#endif
return res;
}
Christian, what do you think?
----------
priority: normal -> high
versions: +Python 2.7, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29870>
_______________________________________
More information about the Python-bugs-list
mailing list