Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: runtime/vm/cpu_x64.cc

Issue 182883002: - Sort out confusion between malloc/free and new/delete. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/cpu_mips.cc ('k') | runtime/vm/cpuid.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpu_x64.cc
===================================================================
--- runtime/vm/cpu_x64.cc (revision 33109)
+++ runtime/vm/cpu_x64.cc (working copy)
@@ -56,7 +56,7 @@
initialized_ = false;
#endif
ASSERT(hardware_ != NULL);
- delete[] hardware_;
+ free(const_cast<char*>(hardware_));
hardware_ = NULL;
CpuInfo::Cleanup();
}
« no previous file with comments | « runtime/vm/cpu_mips.cc ('k') | runtime/vm/cpuid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698