summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/debug/debug.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index c802c79761a8..0691ee7a05a0 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -62,6 +62,7 @@
#include <sal/macros.h>
#include <osl/thread.h>
+#include <cstdlib>
#include <typeinfo>
#include <vector>
@@ -129,7 +130,7 @@ OString exceptionToString(const css::uno::Any & caught)
sMessage += " context: ";
sMessage += pContext;
#if defined __GLIBCXX__
- delete pContext;
+ std::free(const_cast<char *>(pContext));
#endif
}
{