Index: runtime/vm/profiler.cc |
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc |
index 6e3527aeaeef95644e728b63e91e8aa81ab364c1..165822ef6480a2e91bb7daaa8aecd8749b92aca8 100644 |
--- a/runtime/vm/profiler.cc |
+++ b/runtime/vm/profiler.cc |
@@ -340,7 +340,7 @@ static void DumpStackFrame(intptr_t frame_index, uword pc) { |
} else { |
OS::Print("Frame[%" Pd "] = `%s` [0x%" Px "]\n", |
frame_index, native_symbol_name, pc); |
- free(native_symbol_name); |
+ NativeSymbolResolver::FreeSymbolName(native_symbol_name); |
} |
} |