The print function is only called when we're about to crash anyway,
and the datamember 'foo' is allocated by ptmalloc, not tcmalloc. Freeing
it via tcmalloc causes its own crash which pollutes our debugging and
incorrectly sticks tcmalloc into the stack. So, just don't free.
function[sz-1] = 0;
}
out << " " << (i-skip+1) << ": (" << function << end << std::endl;
- free(foo);
//fprintf(out, " %s:%s\n", stack.strings[i], function);
} else {
// didn't find the mangled name, just print the whole line