2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

fix many unclosed file opened by open_image_ro

Many image files opened by open_image_ro weren't closed before return, fix
them all in this patch.

Signed-off-by: Huang Qiang <h.huangqiang@huawei.com>
Acked-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Huang Qiang
2012-10-24 16:51:50 +04:00
committed by Pavel Emelyanov
parent cf698a9a48
commit 223dce83c2
8 changed files with 76 additions and 40 deletions

1
net.c
View File

@@ -265,6 +265,7 @@ static int restore_links(int pid)
nlsk = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
if (nlsk < 0) {
pr_perror("Can't create nlk socket");
close_safe(&fd);
return -1;
}