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.
2 parents 14d080e + 457a229 commit 1e37e9eCopy full SHA for 1e37e9e
Misc/NEWS
@@ -217,6 +217,8 @@ Core and Builtins
217
Library
218
-------
219
220
+- SSLContext.load_dh_params() now properly closes the input file.
221
+
222
- Issue #16829: IDLE printing no longer fails if there are spaces or other
223
special characters in the file path.
224
Modules/_ssl.c
@@ -2248,6 +2248,7 @@ load_dh_params(PySSLContext *self, PyObject *filepath)
2248
errno = 0;
2249
PySSL_BEGIN_ALLOW_THREADS
2250
dh = PEM_read_DHparams(f, NULL, NULL, NULL);
2251
+ fclose(f);
2252
PySSL_END_ALLOW_THREADS
2253
if (dh == NULL) {
2254
if (errno != 0) {
0 commit comments