Commit 3b91de5a authored by Benjamin Peterson's avatar Benjamin Peterson

stop leaking certfile_bytes (closes #27267)

parent d37781eb
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment