Commit 4c8e1c99 authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Close vmas image earlier

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e93566c7
......@@ -477,6 +477,7 @@ static int prepare_mappings(int pid)
priv_size += vma_area_len(vma);
}
close(fd);
if (ret < 0)
goto out;
......@@ -515,7 +516,6 @@ static int prepare_mappings(int pid)
if (ret == 0)
ret = restore_priv_vma_content(pid);
close(fd);
out:
while (!list_empty(&parent_vmas)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment