[Python-checkins] cpython (2.7): stop leaking certfile_bytes (closes #27267)

benjamin.peterson python-checkins at python.org
Thu Jun 9 02:19:05 EDT 2016


https://hg.python.org/cpython/rev/66cd109f3f21
changeset:   101816:66cd109f3f21
branch:      2.7
parent:      101702:4d916be61d46
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Jun 08 23:16:36 2016 -0700
summary:
  stop leaking certfile_bytes (closes #27267)

files:
  Modules/_ssl.c |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2614,6 +2614,7 @@
     SSL_CTX_set_default_passwd_cb(self->ctx, orig_passwd_cb);
     SSL_CTX_set_default_passwd_cb_userdata(self->ctx, orig_passwd_userdata);
     PyMem_Free(pw_info.password);
+    PyMem_Free(certfile_bytes);
     Py_RETURN_NONE;
 
 error:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list