[sanitizer] Plug a memory leak in symbolization code.

llvm-svn: 235411
This commit is contained in:
Sergey Matveev 2015-04-21 20:05:10 +00:00
parent f1edf3e88f
commit f8d5251dad
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ static void ParseSymbolizePCOutput(const char *str, SymbolizedStack *res) {
CHECK(function_name); CHECK(function_name);
if (function_name[0] == '\0') { if (function_name[0] == '\0') {
// There are no more frames. // There are no more frames.
InternalFree(function_name);
break; break;
} }
SymbolizedStack *cur; SymbolizedStack *cur;