Skip to content

Commit

Permalink
malloc error removed
Browse files Browse the repository at this point in the history
  • Loading branch information
devyeshtandon committed Aug 9, 2016
1 parent 50a416a commit e39fd9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mbdynFMI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -596,14 +596,21 @@ void fmu1::CSPropogate(double tcur, double dt){

void fmu1::Terminate(void){

fmi1_import_free_model_instance(fmu);

fmi1_capi_free_dll(fmu->capi);

delete[] eventIndicators;
delete[] eventIndicatorsPrev;
// delete[] currStates;
delete[] currStatesDer;
delete[] deriv;
delete[] vrs;

fmi1_import_free_model_instance(fmu);
fmi1_import_destroy_dllfmu(fmu);
fmi1_import_free(fmu);

fmi_xml_free_context(context);


}
Expand Down
Binary file modified mbdynFMI.o
Binary file not shown.

0 comments on commit e39fd9e

Please sign in to comment.