From 2f1daf4aaaeb2a2ac3606d2c823feac208a6d2b0 Mon Sep 17 00:00:00 2001 From: "marja@chromium.org" Date: Tue, 3 Jun 2014 15:39:47 +0000 Subject: [PATCH] Fix leaky tests added by r21649. TBR=rossberg@chromium.org BUG= Review URL: https://codereview.chromium.org/313653002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21650 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-parsing.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc index f6cf94e..533c624 100644 --- a/test/cctest/test-parsing.cc +++ b/test/cctest/test-parsing.cc @@ -2519,6 +2519,8 @@ TEST(FuncNameInferrerTwoByte) { v8::Local expected_name = v8::String::NewFromTwoByte(isolate, two_byte_name); CHECK(result->Equals(expected_name)); + i::DeleteArray(two_byte_source); + i::DeleteArray(two_byte_name); } @@ -2542,4 +2544,6 @@ TEST(FuncNameInferrerEscaped) { v8::Local expected_name = v8::String::NewFromTwoByte(isolate, two_byte_name); CHECK(result->Equals(expected_name)); + i::DeleteArray(two_byte_source); + i::DeleteArray(two_byte_name); } -- 2.7.4