--- pyMPI-2.0b0/commhelpers.c 2003-04-23 13:00:53.000000000 -0500 +++ pyMPI-2.0b0-mychanges/commhelpers.c 2004-07-08 16:20:00.000000000 -0500 @@ -575,6 +575,8 @@ /* Stick into a tuple with original result */ PYCHECK( pyTuple = Py_BuildValue("(OO)",result,pyStat) ); + Py_XDECREF(result); + Py_XDECREF(pyStat); return pyTuple; pythonError: --- pyMPI-2.0b0/pyMPI_util.c 2004-05-17 12:04:54.000000000 -0500 +++ pyMPI-2.0b0-mychanges/pyMPI_util.c 2004-07-09 12:21:25.000000000 -0500 @@ -330,6 +330,8 @@ /* Stick into a tuple with original result */ PYCHECK( pyTuple = Py_BuildValue("(OO)",result,pyStat) ); + Py_XDECREF(pyStat); + Py_XDECREF(result); return pyTuple; pythonError: