Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: src/deoptimizer.cc

Issue 11269035: Fix memory leak in DeoptimizerData. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comment Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index ad893b3b43cffb1ead987e04095d2e5eccf56e90..e7576562ba09c894f78809c0c4fdf09bf4a34ca0 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -62,6 +62,13 @@ DeoptimizerData::~DeoptimizerData() {
lazy_deoptimization_entry_code_);
lazy_deoptimization_entry_code_ = NULL;
}
+ DeoptimizingCodeListNode* current = deoptimizing_code_list_;
+ while (current != NULL) {
+ DeoptimizingCodeListNode* prev = current;
+ current = current->next();
+ delete prev;
+ }
+ deoptimizing_code_list_ = NULL;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698