]> granicus.if.org Git - python/commitdiff
stop leaking certfile_bytes (closes #27267)
authorBenjamin Peterson <benjamin@python.org>
Thu, 9 Jun 2016 06:16:36 +0000 (23:16 -0700)
committerBenjamin Peterson <benjamin@python.org>
Thu, 9 Jun 2016 06:16:36 +0000 (23:16 -0700)
Modules/_ssl.c

index 23d4d5ceab22075721d1bcb15cf9f4dd37e87540..04cb58b9631f553890218fbf7bbcba2069619a12 100644 (file)
@@ -2614,6 +2614,7 @@ load_cert_chain(PySSLContext *self, PyObject *args, PyObject *kwds)
     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: