Commit f4807533 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

exception: use dynamic memory for std::runtime_error::what()

parent b232fbf8
......@@ -117,7 +117,9 @@ public:
ss << " Please consult the user documentation for details:" << std::endl;
ss << " " << docUri() << std::endl;
return ss.str().c_str();
auto str = new std::string(ss.str());
return str->c_str();
}
};
......
Supports Markdown
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