Index: runtime/vm/dart_api_impl.cc |
=================================================================== |
--- runtime/vm/dart_api_impl.cc (revision 23633) |
+++ runtime/vm/dart_api_impl.cc (working copy) |
@@ -1042,8 +1042,7 @@ |
static uint8_t* allocator(uint8_t* ptr, intptr_t old_size, intptr_t new_size) { |
- void* new_ptr = realloc(reinterpret_cast<void*>(ptr), new_size); |
- return reinterpret_cast<uint8_t*>(new_ptr); |
+ return Utils::Realloc(ptr, old_size, new_size); |
} |