Implement exit, partly
This commit is contained in:
parent
aa2915001e
commit
85fef883d6
1 changed files with 25 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue