[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - sc/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 26 12:00:13 UTC 2019
sc/source/ui/dataprovider/htmldataprovider.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit e4bd46ff51ccc9a5ff875796a5ad6afd3f8a6058
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Thu Jul 4 18:16:09 2019 +0200
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Thu Sep 26 13:59:24 2019 +0200
cid#1448425: Resource leak (sc/htmlprovider)
Change-Id: I3c23280da75e51be37c4b66f14f805ca49ebf3cf
Reviewed-on: https://gerrit.libreoffice.org/75095
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
(cherry picked from commit 2f6ead197bbff5142199d00a30ab900ebb997754)
Reviewed-on: https://gerrit.libreoffice.org/78857
Reviewed-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/ui/dataprovider/htmldataprovider.cxx b/sc/source/ui/dataprovider/htmldataprovider.cxx
index 6f7328bab06c..869cc44489c8 100644
--- a/sc/source/ui/dataprovider/htmldataprovider.cxx
+++ b/sc/source/ui/dataprovider/htmldataprovider.cxx
@@ -208,7 +208,12 @@ void HTMLFetchThread::execute()
}
if (pXmlNodes->nodeNr == 0)
+ {
+ xmlXPathFreeNodeSet(pXmlNodes);
+ xmlXPathFreeNodeSetList(pXmlXpathObj);
+ xmlXPathFreeContext(pXmlXpathCtx);
return;
+ }
xmlNodePtr pNode = pXmlNodes->nodeTab[0];
handleTable(pNode);
More information about the Libreoffice-commits
mailing list