summaryrefslogtreecommitdiff
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-03-11 03:03:07 +0000
committerFred Drake <fdrake@acm.org>2001-03-11 03:03:07 +0000
commit8f11cd22a883bd20c4284c3501d23296cd6dda87 (patch)
tree05ea012e0f7fcd825ba4f1d471d9ef3a8b19b9f7 /Modules/pwdmodule.c
parent9587c38205955690a1d26fba27a6cb5dc9794784 (diff)
downloadcpython-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.c1
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