mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
401396fc60
commit
8e68eb61f2
2 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@ pwd_getpwall(PyObject *self, PyObject *args)
|
|||
}
|
||||
Py_DECREF(v);
|
||||
}
|
||||
endpwent();
|
||||
return d;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue