Skip to content

Commit cff2eb6

Browse files
committed
Py_DECREF
1 parent aa76a9f commit cff2eb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

panda/src/ode/odeSpace.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ near_callback(void *data, dGeomID o1, dGeomID o2) {
265265
if (!result) {
266266
odespace_cat.error() << "An error occurred while calling python function!\n";
267267
PyErr_Print();
268+
} else {
269+
Py_DECREF(result);
268270
}
271+
Py_DECREF(p2);
272+
Py_DECREF(p1);
269273
}
270274
#endif
271275

0 commit comments

Comments
 (0)