From 54eada7579ba1b485ada22375780269e977ee46d Mon Sep 17 00:00:00 2001 From: yunfeibai Date: Wed, 27 Sep 2017 16:42:29 -0700 Subject: [PATCH] Fix memory leak. --- examples/pybullet/pybullet.c | 1 + 1 file changed, 1 insertion(+) 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);