diff --git a/SWIG/Lib/python/pytuplehlp.swg b/SWIG/Lib/python/pytuplehlp.swg index 9df7ec611..ad96bfd32 100644 --- a/SWIG/Lib/python/pytuplehlp.swg +++ b/SWIG/Lib/python/pytuplehlp.swg @@ -19,6 +19,7 @@ t_output_helper(PyObject* target, PyObject* o) { PyList_SetItem(target, 0, o2); } PyList_Append(target,o); + Py_DECREF(o); } return target; }