Skip to content

Commit

Permalink
- fixed memory leak
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18457 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Dec 10, 2013
1 parent 2bb2a8d commit 2e4ce73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SimulationRuntime/c/optimization/goal/evalF.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ int diff_symColoredObject(IPOPT_DATA_ *iData, double *dF, int this_it)
}
}
}
for(i =0; i<=nx; ++i)
dF[i] = iData->gradFomc[this_it][i];
memcpy(dF, iData->gradFomc[this_it], sizeof(double)*iData->nv);
return 0;
}
#endif

0 comments on commit 2e4ce73

Please sign in to comment.