Permalink
Browse files

Deallocate root when deconstructing HeapDump object

  • Loading branch information...
dbussink committed Feb 9, 2014
1 parent fe23f6d commit c57bd3a00f862f1b1fced27498b729a204c61f87
Showing with 4 additions and 0 deletions.
  1. +4 −0 vm/builtin/heap_dump.cpp
View
@@ -269,6 +269,10 @@ namespace rubinius {
root = mgr.new_layout(0);
}
+ ~HeapDump() {
+ delete root;
+ }
+
int object_id(Object* obj) {
Identities::iterator i = ids.find(obj);
if(i != ids.end()) {

0 comments on commit c57bd3a

Please sign in to comment.