diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index c52ff4630..a6a51d23b 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -6945,6 +6945,7 @@ static PyObject* pybullet_calculateInverseKinematics(PyObject* self, { b3CalculateInverseKinematicsSetJointDamping(command, numJoints, jointDamping); } + free(jointDamping); statusHandle = b3SubmitClientCommandAndWaitStatus(sm, command);