Implement exit, partly

This commit is contained in:
Jeremy Soller 2016-09-11 22:03:03 -06:00
commit 85fef883d6

View file

@ -63,7 +63,8 @@ impl<'a> Elf<'a> {
// Unmap previous image and stack
context.image.clear();
context.stack.take();
drop(context.heap.take());
drop(context.stack.take());
for segment in self.segments() {
if segment.p_type == program_header::PT_LOAD {