diff options
author | Fred Drake <fdrake@acm.org> | 2001-03-11 03:03:07 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-03-11 03:03:07 +0000 |
commit | 8f11cd22a883bd20c4284c3501d23296cd6dda87 (patch) | |
tree | 05ea012e0f7fcd825ba4f1d471d9ef3a8b19b9f7 /Modules/pwdmodule.c | |
parent | 9587c38205955690a1d26fba27a6cb5dc9794784 (diff) | |
download | cpython-8f11cd22a883bd20c4284c3501d23296cd6dda87.tar.gz |
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 290dc45145..4c1b7db878 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 |