From 20dc7b1386c5206da0fc77b89c0dce238a5de0e0 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Thu, 18 Feb 2016 09:56:11 -0600 Subject: [PATCH] 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 --- trick_sims/SIM_ball_L1/Modified_data/data_record.dr | 1 + 1 file changed, 1 insertion(+) diff --git a/trick_sims/SIM_ball_L1/Modified_data/data_record.dr b/trick_sims/SIM_ball_L1/Modified_data/data_record.dr index e8ade98f..c0f1344d 100644 --- a/trick_sims/SIM_ball_L1/Modified_data/data_record.dr +++ b/trick_sims/SIM_ball_L1/Modified_data/data_record.dr @@ -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 )