Index: runtime/vm/cpuinfo_test.cc |
diff --git a/runtime/vm/cpuinfo_test.cc b/runtime/vm/cpuinfo_test.cc |
index 860c407601276b3ca1538354599609b857c04216..0b6113b75b9b2567d510f76454ee8777237f2011 100644 |
--- a/runtime/vm/cpuinfo_test.cc |
+++ b/runtime/vm/cpuinfo_test.cc |
@@ -12,6 +12,8 @@ namespace dart { |
UNIT_TEST_CASE(GetCpuModelTest) { |
const char* cpumodel = CpuInfo::GetCpuModel(); |
EXPECT_NE(strlen(cpumodel), 0UL); |
+ // caller is responsible for deleting the returned cpumodel string. |
+ free(const_cast<char*>(cpumodel)); |
} |
} // namespace dart |