Revision: 12809
Author:   [email protected]
Date:     Thu Oct 25 02:35:55 2012
Log:      Fix memory leak in DeoptimizerData.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/11269035
http://code.google.com/p/v8/source/detail?r=12809

Modified:
 /branches/bleeding_edge/src/deoptimizer.cc

=======================================
--- /branches/bleeding_edge/src/deoptimizer.cc  Mon Oct 22 02:48:56 2012
+++ /branches/bleeding_edge/src/deoptimizer.cc  Thu Oct 25 02:35:55 2012
@@ -62,6 +62,13 @@
         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;
 }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to