summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-06 14:28:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-07 08:31:35 +0200
commit5e38da867fb8b71011a52588ad87f0603f3d863f (patch)
treed695140b3db4996701ac0d5b2006299f442996ae /tools
parent024f3e05e5a0ccf189903caede2ace7ba3e6f3de (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 bfbb8e6b4554..290e1a88a384 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -115,6 +115,9 @@ OString exceptionToString(const css::uno::Any & caught)
#endif
sMessage += " context: ";
sMessage += pContext;
+#if defined __GLIBCXX__
+ delete pContext;
+#endif
}
{
css::configuration::CorruptedConfigurationException specialized;