2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

crtools: Merge fdset free into close

The same as previous patch -- no need in two separate calls.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Pavel Emelyanov
2012-01-12 15:19:14 +04:00
committed by Cyrill Gorcunov
parent 871b73674d
commit 6b83aef6a1
4 changed files with 1 additions and 17 deletions

View File

@@ -195,14 +195,8 @@ void close_cr_fdset(struct cr_fdset *cr_fdset)
close(cr_fdset->fds[i]);
cr_fdset->fds[i] = -1;
}
}
void free_cr_fdset(struct cr_fdset **cr_fdset)
{
if (cr_fdset && *cr_fdset) {
free(*cr_fdset);
*cr_fdset = NULL;
}
free(cr_fdset);
}
int get_image_path(char *path, int size, const char *fmt, int pid)