Make sure we close the group and password databases when we are done with

them; this closes SF bug #407504.
This commit is contained in:
Fred Drake 2001-03-11 03:03:07 +00:00
parent 401396fc60
commit 8e68eb61f2
2 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ grp_getgrall(PyObject *self, PyObject *args)
}
Py_DECREF(v);
}
endgrent();
return d;
}

View File

@ -102,6 +102,7 @@ pwd_getpwall(PyObject *self, PyObject *args)
}
Py_DECREF(v);
}
endpwent();
return d;
}
#endif