diff options
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 0de541c..8212cd1 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -2248,6 +2248,7 @@ load_dh_params(PySSLContext *self, PyObject *filepath) errno = 0; PySSL_BEGIN_ALLOW_THREADS dh = PEM_read_DHparams(f, NULL, NULL, NULL); + fclose(f); PySSL_END_ALLOW_THREADS if (dh == NULL) { if (errno != 0) { |