Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 05fea0bbb617ba0a9b06f140f8a144df122fd712..170ec76a14e01998fe74d7834e45977c0dc29091 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -388,8 +388,7 @@ TEST(PreParseOverflow) { |
reinterpret_cast<uintptr_t>(&marker) - 128 * 1024); |
size_t kProgramSize = 1024 * 1024; |
- i::SmartArrayPointer<char> program( |
- reinterpret_cast<char*>(malloc(kProgramSize + 1))); |
+ i::SmartArrayPointer<char> program(i::NewArray<char>(kProgramSize + 1)); |
memset(*program, '(', kProgramSize); |
program[kProgramSize] = '\0'; |