STINNER Victor added the comment: > KNOWN ISSUE: There's a reference leak in the POSIX version (found with > "python -m test -R 3:2 test_os").
Don't worry, it was a simple refleak, I fixed it: diff -r 392d3214fc23 Modules/posixmodule.c --- a/Modules/posixmodule.c Sun Mar 08 01:58:04 2015 +0100 +++ b/Modules/posixmodule.c Sun Mar 08 02:08:05 2015 +0100 @@ -16442,6 +16442,7 @@ DirEntry_fetch_stat(DirEntry *self, int result = STAT(path, &st); else result = LSTAT(path, &st); + Py_DECREF(bytes); if (result != 0) return PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, self->path); ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22524> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com