memory leak fix
authorFilippo Gioachin <gioachin@illinois.edu>
Sat, 21 Aug 2004 03:56:58 +0000 (03:56 +0000)
committerFilippo Gioachin <gioachin@illinois.edu>
Sat, 21 Aug 2004 03:56:58 +0000 (03:56 +0000)
src/libs/ck-libs/pythonCCS/PythonCCS.C

index 1123d25b7d38adc9cbd3a4032d628eeabe3dd4f9..1d24c1820c9b4dda6861e488a45e9d511c52168f 100644 (file)
@@ -159,6 +159,7 @@ void PythonObject::iterate (CkCcsRequestMsg *msg) {
   while (more) {
     result = PyObject_CallObject(item, arg);
     more = nextIteratorUpdate(part, result, userIterator);
+    Py_DECREF(result);
   }
 
   // distroy map element in pyWorkers and terminate interpreter