[Libreoffice-commits] core.git: tools/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 7 06:32:12 UTC 2019
tools/source/debug/debug.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 5e38da867fb8b71011a52588ad87f0603f3d863f
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon May 6 14:28:03 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue May 7 08:31:35 2019 +0200
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 at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list