mirror of
https://github.com/nasa/trick.git
synced 2025-01-18 02:40:08 +00:00
Functions with enumerated default arguments bad
Found a side effect of SWIG's "compactdefaultargs". It highlighted an error we had in creating the data_record group in our ball sim. We did not release the memory from python and it was causing a double free at exit. refs #176
This commit is contained in:
parent
83572b20cb
commit
20dc7b1386
@ -13,5 +13,6 @@ drg0.add_variable("ball.state.output.acceleration[1]", "ball.state.out.accelerat
|
||||
drg0.add_variable("ball.state.output.external_force[0]", "ball.state.out.external_force[0]")
|
||||
drg0.add_variable("ball.state.output.external_force[1]", "ball.state.out.external_force[1]")
|
||||
|
||||
drg0.thisown = 0
|
||||
trick.add_data_record_group( drg0 )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user