Index: test/cctest/cctest.cc |
=================================================================== |
--- test/cctest/cctest.cc (revision 1525) |
+++ test/cctest/cctest.cc (working copy) |
@@ -44,9 +44,9 @@ |
basename = strrchr(const_cast<char *>(file), '\\'); |
} |
if (!basename) { |
- basename = v8::internal::OS::StrDup(file); |
+ basename = v8::internal::StrDup(file); |
} else { |
- basename = v8::internal::OS::StrDup(basename + 1); |
+ basename = v8::internal::StrDup(basename + 1); |
} |
// Drop the extension, if there is one. |
char *extension = strrchr(basename, '.'); |
@@ -82,7 +82,7 @@ |
print_run_count = false; |
} else { |
- char* arg_copy = v8::internal::OS::StrDup(arg); |
+ char* arg_copy = v8::internal::StrDup(arg); |
char* testname = strchr(arg_copy, '/'); |
if (testname) { |
// Split the string in two by nulling the slash and then run |
@@ -115,7 +115,7 @@ |
test = test->prev(); |
} |
} |
- free(arg_copy); |
+ v8::internal::DeleteArray<char>(arg_copy); |
} |
} |
if (print_run_count && tests_run != 1) |