mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-08 03:40:21 -04:00
patch for a mem leak in ArgException
This commit is contained in:
parent
288e8f500e
commit
d45405908c
@ -78,7 +78,8 @@ class ArgException : public std::exception
|
||||
*/
|
||||
const char* what() const throw()
|
||||
{
|
||||
std::string ex = _argId + " -- " + _errorText;
|
||||
static std::string ex;
|
||||
ex = _argId + " -- " + _errorText;
|
||||
return ex.c_str();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user