New submission from Damien Cassou damien.cas...@gmail.com:
In load_source_module() function from import.c, it looks like Py_DECREF is not
called where it should be. Please find attached a patch that fixes the leak.
This bug has been found using Coccinelle (http://coccinelle.lip6.fr/) using a
Antoine Pitrou pit...@free.fr added the comment:
Is it 2.7-only?
--
nosy: +brett.cannon, ncoghlan, pitrou
stage: - patch review
type: - resource usage
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14761
Damien Cassou damien.cas...@gmail.com added the comment:
@pitrou I just checked Python-2.7.3 and the tip of the mercurial repository.
It's not in the latter at least.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14761
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a775fc27f469 by Antoine Pitrou in branch '2.7':
Issue #14761: Fix potential leak on an error case in the import machinery.
http://hg.python.org/cpython/rev/a775fc27f469
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9de4d85e4197 by Antoine Pitrou in branch '3.2':
Issue #14761: Fix potential leak on an error case in the import machinery.
http://hg.python.org/cpython/rev/9de4d85e4197
New changeset 840cb46d0395 by Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment:
Fixed, thank you!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org