summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <erwin.coumans@gmail.com>2020-08-13 17:02:54 -0700
committerErwin Coumans <erwin.coumans@gmail.com>2020-08-13 17:02:54 -0700
commit16efd7b28847e1cbce92ffbeb039a5bfa035582c (patch)
tree41bfe8b180a30433906955235f6dde6c437fa138
parent8504384b63afbb3d4a505d6159af340e0575cf4b (diff)
downloadbullet3-16efd7b28847e1cbce92ffbeb039a5bfa035582c.tar.gz
fix memory leak in pybullet.calculateJacobian
-rw-r--r--examples/pybullet/pybullet.c4
1 files 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,