restore: Don't forget to close file descriptors on VMAs

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2011-11-08 12:20:28 +04:00
parent b9d0883d76
commit c07a4b2caa

View file

@ -245,6 +245,9 @@ self_len_end:
write_hex_n(va);
goto core_restore_end;
}
if (vma_entry.fd != -1UL)
sys_close(vma_entry.fd);
}
/*