diff options
Diffstat (limited to 'typeparser.cpp')
| -rw-r--r-- | typeparser.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/typeparser.cpp b/typeparser.cpp index c32bcec1..7cbd442b 100644 --- a/typeparser.cpp +++ b/typeparser.cpp @@ -101,7 +101,10 @@ std::string TypeParser::FormatParseErrors(const std::vector<TypeParserError>& er std::string TypeParser::GetName() const { - return BNGetTypeParserName(m_object); + char* str = BNGetTypeParserName(m_object); + std::string result = str; + BNFreeString(str); + return result; } |
