[issue14761] Memleak in import.c load_source_module()

Damien Cassou report at bugs.python.org
Wed May 9 10:45:55 CEST 2012


New submission from Damien Cassou <damien.cassou at 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 semantic patch (similar to https://gist.github.com/2634899).

----------
components: Interpreter Core
files: fix_load_source_module_leak.patch
keywords: patch
messages: 160262
nosy: benjamin.peterson, cassou, lemburg, tim_one
priority: normal
severity: normal
status: open
title: Memleak in import.c load_source_module()
versions: Python 2.7
Added file: http://bugs.python.org/file25507/fix_load_source_module_leak.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14761>
_______________________________________


More information about the Python-bugs-list mailing list