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; |
} |