[Libreoffice-commits] core.git: l10ntools/source
Stephan Bergmann
sbergman at redhat.com
Fri Apr 11 03:24:16 PDT 2014
l10ntools/source/treemerge.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 931043ab318ddb977e6943ad0b69443a2757ae7f
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Apr 11 12:23:30 2014 +0200
Memory released through xmlFreeDoc should be acquired with xmlMalloc
Change-Id: I70db57257fa8226d9f18b7d970d85cc1769252ad
diff --git a/l10ntools/source/treemerge.cxx b/l10ntools/source/treemerge.cxx
index 06e93d7..f2e959f 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;
More information about the Libreoffice-commits
mailing list