diff options
author | Erwin Coumans <erwin.coumans@gmail.com> | 2020-08-13 17:02:54 -0700 |
---|---|---|
committer | Erwin Coumans <erwin.coumans@gmail.com> | 2020-08-13 17:02:54 -0700 |
commit | 16efd7b28847e1cbce92ffbeb039a5bfa035582c (patch) | |
tree | 41bfe8b180a30433906955235f6dde6c437fa138 | |
parent | 8504384b63afbb3d4a505d6159af340e0575cf4b (diff) | |
download | bullet3-16efd7b28847e1cbce92ffbeb039a5bfa035582c.tar.gz |
fix memory leak in pybullet.calculateJacobian
-rw-r--r-- | examples/pybullet/pybullet.c | 4 |
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, |