fix memory leak in PyBullet.getJointStates, fixes issue #1661
This commit is contained in:
@@ -3551,6 +3551,7 @@ static PyObject* pybullet_getJointStates(PyObject* self, PyObject* args, PyObjec
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Py_DECREF(jointIndicesSeq);
|
||||||
return resultListJointState;
|
return resultListJointState;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user