From 16efd7b28847e1cbce92ffbeb039a5bfa035582c Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Thu, 13 Aug 2020 17:02:54 -0700 Subject: fix memory leak in pybullet.calculateJacobian --- examples/pybullet/pybullet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index d9c5beac7..1f8d006f9 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -11958,8 +11958,8 @@ static PyObject* pybullet_calculateJacobian(PyObject* self, PyObject* args, PyOb if (dofCount) { int byteSizeDofCount = sizeof(double) * dofCount; - double* linearJacobian = (double*)malloc(3 * byteSizeDofCount); - double* angularJacobian = (double*)malloc(3 * byteSizeDofCount); + linearJacobian = (double*)malloc(3 * byteSizeDofCount); + angularJacobian = (double*)malloc(3 * byteSizeDofCount); b3GetStatusJacobian(statusHandle, NULL, linearJacobian, -- cgit v1.2.1 From bac8b6305dd73a6deec327f3a0f89bb51e5c6321 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Thu, 13 Aug 2020 19:38:58 -0700 Subject: bump up pybullet version to 2.8.7 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3862c12b9..9f3730240 100644 --- a/setup.py +++ b/setup.py @@ -501,7 +501,7 @@ if 'BT_USE_EGL' in EGL_CXX_FLAGS: setup( name='pybullet', - version='2.8.6', + version='2.8.7', description= 'Official Python Interface for the Bullet Physics SDK specialized for Robotics Simulation and Reinforcement Learning', long_description= -- cgit v1.2.1