From 53972c62e32a1183a22a082f643b271d809f1b76 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Sat, 6 Feb 2021 10:44:33 -0600 Subject: [PATCH] Remove catch block for plain C strings LGTM complains about this construct leaking memory. Commit 227cf6de88 eliminated the parts of FreeCAD that throw those strings. This commit eliminates the catch block. --- src/Base/PyObjectBase.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Base/PyObjectBase.h b/src/Base/PyObjectBase.h index 890ddf2a01..d7d1c0b6e8 100644 --- a/src/Base/PyObjectBase.h +++ b/src/Base/PyObjectBase.h @@ -482,10 +482,6 @@ BaseExport extern PyObject* BaseExceptionFreeCADAbort; { \ R; \ } \ - catch(const char *e) \ - { \ - _Py_Error(R,Base::BaseExceptionFreeCADError,e); \ - } \ #ifndef DONT_CATCH_CXX_EXCEPTIONS /// see docu of PY_TRY