From 70d9e2db8a53a994e323dbb07d42eaebaf5008af Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 4 Jul 2019 18:51:07 +0200 Subject: cid#1448320: Resource leak in object (l10ntools/treemerge) Change-Id: I9d09d690e003d73878ef2e30da11cf079d0db441 Reviewed-on: https://gerrit.libreoffice.org/75098 Tested-by: Jenkins Reviewed-by: Julien Nabet --- l10ntools/source/treemerge.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/l10ntools/source/treemerge.cxx b/l10ntools/source/treemerge.cxx index 65916d12d3e2..b6d246317b23 100644 --- a/l10ntools/source/treemerge.cxx +++ b/l10ntools/source/treemerge.cxx @@ -221,6 +221,9 @@ TreeParser::TreeParser( TreeParser::~TreeParser() { + // be sure m_pSource is freed + if (m_bIsInitialized) + xmlFreeDoc( m_pSource ); } void TreeParser::Extract( const OString& rPOFile ) -- cgit v1.2.3