Commit 66fa5263 authored by CARDOSI Paul's avatar CARDOSI Paul

Free memory region created by abi::__cxa_demangle.

parent 5328cddc
......@@ -89,7 +89,9 @@ public:
#ifdef __GNUG__
// if GCC then we ask for a clean type as default task name
int status;
Parent::setTaskName(abi::__cxa_demangle(typeid(TaskFuncType).name(), 0, 0, &status));
char *demangledName = abi::__cxa_demangle(typeid(TaskFuncType).name(), 0, 0, &status);
Parent::setTaskName(demangledName);
free(demangledName);
#else
Parent::setTaskName(typeid(TaskFuncType).name());
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment