From 5e38da867fb8b71011a52588ad87f0603f3d863f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 6 May 2019 14:28:03 +0200 Subject: 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 --- tools/source/debug/debug.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') 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; -- cgit