From 4057ed91af7cb2d9f15f12041acaf3c3a77363d1 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Thu, 10 Jul 2014 11:34:14 +0000 Subject: [PATCH] Fix memory leak in Parser after r22314. R=marja@chromium.org Review URL: https://codereview.chromium.org/383713002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22317 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/parser.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parser.h b/src/parser.h index 1537e5d69d..d0b67b7a79 100644 --- a/src/parser.h +++ b/src/parser.h @@ -561,6 +561,8 @@ class Parser : public ParserBase { ~Parser() { delete reusable_preparser_; reusable_preparser_ = NULL; + delete cached_parse_data_; + cached_parse_data_ = NULL; } // Parses the source code represented by the compilation info and sets its