projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8f054f
)
missing decref in __Pyx_ImportType()
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 10 Sep 2008 16:10:16 +0000
(18:10 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 10 Sep 2008 16:10:16 +0000
(18:10 +0200)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index b772c2c5851a7b1baf06f957294af00b3f3ff04e..6df6b32ad14312af89036508d55c9806bef656c3 100644
(file)
--- a/
Cython/Compiler/ModuleNode.py
+++ b/
Cython/Compiler/ModuleNode.py
@@
-2010,6
+2010,9
@@
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
goto bad;
result = PyObject_GetAttr(py_module, py_name);
Py_DECREF(py_name);
+ py_name = 0;
+ Py_DECREF(py_module);
+ py_module = 0;
if (!result)
goto bad;
if (!PyType_Check(result)) {
@@
-2026,6
+2029,7
@@
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
}
return (PyTypeObject *)result;
bad:
+ Py_XDECREF(py_module);
Py_XDECREF(result);
return 0;
}