Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69db587 commit 457a229Copy full SHA for 457a229
2 files changed
Misc/NEWS
@@ -147,6 +147,8 @@ Core and Builtins
147
Library
148
-------
149
150
+- SSLContext.load_dh_params() now properly closes the input file.
151
+
152
- Issue #16829: IDLE printing no longer fails if there are spaces or other
153
special characters in the file path.
154
Modules/_ssl.c
@@ -2177,6 +2177,7 @@ load_dh_params(PySSLContext *self, PyObject *filepath)
2177
errno = 0;
2178
PySSL_BEGIN_ALLOW_THREADS
2179
dh = PEM_read_DHparams(f, NULL, NULL, NULL);
2180
+ fclose(f);
2181
PySSL_END_ALLOW_THREADS
2182
if (dh == NULL) {
2183
if (errno != 0) {
0 commit comments