diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-11 12:23:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-11 12:23:47 +0200 |
commit | 931043ab318ddb977e6943ad0b69443a2757ae7f (patch) | |
tree | aef573442a24b2b2093771a246cc5fb727ad7709 /l10ntools | |
parent | 7692b91939ea7a816e1dfaa10c36d8fd5cd7a759 (diff) |
Memory released through xmlFreeDoc should be acquired with xmlMalloc
Change-Id: I70db57257fa8226d9f18b7d970d85cc1769252ad
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/treemerge.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/source/treemerge.cxx b/l10ntools/source/treemerge.cxx index 06e93d72af8c..f2e959fcbf28 100644 --- a/l10ntools/source/treemerge.cxx +++ b/l10ntools/source/treemerge.cxx @@ -213,7 +213,7 @@ TreeParser::TreeParser( } 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() ); } m_bIsInitialized = true; |