[omniORB] memory leak in idlpython.cc
Wei Jiang
sdjiangwei at gmail.com
Tue Oct 20 15:44:08 BST 2009
Index: src/tool/omniidl/cxx/idlpython.cc
===================================================================
--- src/tool/omniidl/cxx/idlpython.cc (版本 5926)
+++ src/tool/omniidl/cxx/idlpython.cc (工作副本)
@@ -675,8 +675,9 @@
// Give each Declarator a reference to the Typedef. This creates a
// loop which Python's GC won't collect :-(
for (i=0; i<l; ++i) {
- PyObject_CallMethod(PyList_GetItem(pydeclarators, i),
+ PyObject* r = PyObject_CallMethod(PyList_GetItem(pydeclarators, i),
(char*)"_setAlias", (char*)"O", result_);
+ ASSERT_PYOBJ(r); Py_DECREF(r);
}
}
More information about the omniORB-list
mailing list