summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-06 14:28:03 +0200
committerMichael Meeks <michael.meeks@collabora.com>2019-08-05 21:06:51 -0400
commit2b604717d6d2dc5b8565fada6b311acd923643e7 (patch)
treeb71baf58b68fb0acab46935a15c570cef6fc0219 /tools
parent90258c5001c862cfd03f829d4aab2feac240eef6 (diff)
fix leak in exceptionToString
need to release the pointer we get back from demangle Change-Id: I74f1065006fe0cd5da79d0ec5caa514d216be9a1 Reviewed-on: https://gerrit.libreoffice.org/71859 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/debug/debug.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index efecd0f5027b..c802c79761a8 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -128,6 +128,9 @@ OString exceptionToString(const css::uno::Any & caught)
#endif
sMessage += " context: ";
sMessage += pContext;
+#if defined __GLIBCXX__
+ delete pContext;
+#endif
}
{
css::configuration::CorruptedConfigurationException specialized;