This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients abacabadabacaba, akira, alexei.romanov, benhoyt, giampaolo.rodola, josh.r, pitrou, python-dev, socketpair, tebeka, tim.golden, vstinner
Date 2015-03-08.01:09:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425776997.4.0.38757362227.issue22524@psf.upfronthosting.co.za>
In-reply-to
Content
> 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);
History
Date User Action Args
2015-03-08 01:09:57vstinnersetrecipients: + vstinner, tebeka, pitrou, giampaolo.rodola, tim.golden, benhoyt, abacabadabacaba, akira, socketpair, python-dev, josh.r, alexei.romanov
2015-03-08 01:09:57vstinnersetmessageid: <1425776997.4.0.38757362227.issue22524@psf.upfronthosting.co.za>
2015-03-08 01:09:57vstinnerlinkissue22524 messages
2015-03-08 01:09:57vstinnercreate