[Python-checkins] cpython (2.7): fix leak of keyfile_bytes

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


https://hg.python.org/cpython/rev/0d09fc6a4081
changeset:   101817:0d09fc6a4081
branch:      2.7
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Jun 08 23:18:51 2016 -0700
summary:
  fix leak of keyfile_bytes

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
@@ -2613,6 +2613,7 @@
     }
     SSL_CTX_set_default_passwd_cb(self->ctx, orig_passwd_cb);
     SSL_CTX_set_default_passwd_cb_userdata(self->ctx, orig_passwd_userdata);
+    Py_XDECREF(keyfile_bytes);
     PyMem_Free(pw_info.password);
     PyMem_Free(certfile_bytes);
     Py_RETURN_NONE;

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


More information about the Python-checkins mailing list