Skip to content

Commit

Permalink
Fix #3140
Browse files Browse the repository at this point in the history
- add XML_ParserFree(parser); at the end of modelInfoXmlInit
- thanks go to Mathilde for reporting this

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24469 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 7, 2015
1 parent 36e2623 commit 97ab2d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SimulationRuntime/c/simulation/simulation_info_xml.c
Expand Up @@ -304,6 +304,7 @@ void modelInfoXmlInit(MODEL_DATA_XML* xml)
assert(xml->nEquations == userData.curIndex);
xml->nProfileBlocks = measure_time_flag & 1 ? userData.curProfileIndex : measure_time_flag & 2 ? xml->nEquations : 0; /* Set the number of profile blocks to the number we read */
assert(xml->nFunctions == userData.curFunctionIndex);
XML_ParserFree(parser);
}

EQUATION_INFO modelInfoXmlGetEquation(MODEL_DATA_XML* xml, size_t ix)
Expand Down

0 comments on commit 97ab2d3

Please sign in to comment.