diff --git a/port/stack_trace.cc b/port/stack_trace.cc index bec0c994b..74996e836 100644 --- a/port/stack_trace.cc +++ b/port/stack_trace.cc @@ -110,6 +110,7 @@ void PrintStack(int first_frames_to_skip) { fprintf(stderr, "#%-2d ", i - first_frames_to_skip); PrintStackTraceLine((symbols != nullptr) ? symbols[i] : nullptr, frames[i]); } + free(symbols); } static void StackTraceHandler(int sig) {