mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
restore: Don't forget to close file descriptors on VMAs
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
b9d0883d76
commit
c07a4b2caa
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue