When trying to print objects on the heap in Heap::drop as described in #947, a use after free occurs.
To reproduce, add println!("{:?}", self.objects); in Heap::drop, before self.clear() and execute the following command: cargo r --release -- run packages/Examples/fibonacci.candy -- 10
When trying to print objects on the heap in Heap::drop as described in #947, a use after free occurs.
To reproduce, add
println!("{:?}", self.objects);
in Heap::drop, beforeself.clear()
and execute the following command:cargo r --release -- run packages/Examples/fibonacci.candy -- 10