diff options
author | Fred Drake <fdrake@acm.org> | 2001-03-11 03:03:07 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-03-11 03:03:07 (GMT) |
commit | 8e68eb61f25deafc3c3b3beb814e5deadd05a496 (patch) | |
tree | 0ad72f7ab5b9fca17d5a1516ef2c70f3f78a4c36 /Modules/pwdmodule.c | |
parent | 401396fc60fd28bf7166020f03f8c6223ca99d3a (diff) | |
download | cpython-8e68eb61f25deafc3c3b3beb814e5deadd05a496.zip cpython-8e68eb61f25deafc3c3b3beb814e5deadd05a496.tar.gz cpython-8e68eb61f25deafc3c3b3beb814e5deadd05a496.tar.bz2 |
Make sure we close the group and password databases when we are done with
them; this closes SF bug #407504.
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r-- | Modules/pwdmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 290dc45..4c1b7db 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -102,6 +102,7 @@ pwd_getpwall(PyObject *self, PyObject *args) } Py_DECREF(v); } + endpwent(); return d; } #endif |