Kaydet (Commit) 931043ab authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Memory released through xmlFreeDoc should be acquired with xmlMalloc

Change-Id: I70db57257fa8226d9f18b7d970d85cc1769252ad
üst 7692b919
...@@ -213,7 +213,7 @@ TreeParser::TreeParser( ...@@ -213,7 +213,7 @@ TreeParser::TreeParser(
} }
if( !m_pSource->name ) if( !m_pSource->name )
{ {
m_pSource->name = new char[strlen(rInputFile.getStr())+1]; m_pSource->name = static_cast<char *>(xmlMalloc(strlen(rInputFile.getStr())+1));
strcpy( m_pSource->name, rInputFile.getStr() ); strcpy( m_pSource->name, rInputFile.getStr() );
} }
m_bIsInitialized = true; m_bIsInitialized = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment