Index: runtime/bin/dartutils.cc |
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc |
index 9e2fcf791e92778b5ff05e9f2d5fc1c5e1a0ab9a..e86fad9d0cc34de475d0dc336d098e478a95bb90 100644 |
--- a/runtime/bin/dartutils.cc |
+++ b/runtime/bin/dartutils.cc |
@@ -608,7 +608,7 @@ void FUNCTION_NAME(Builtin_LoadSource)(Dart_NativeArguments args) { |
} |
if (buffer_copy != NULL) { |
- free(const_cast<uint8_t *>(buffer_copy)); |
+ free(buffer_copy); |
} |
if (Dart_IsError(result)) { |