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:
committed by
Cyrill Gorcunov
parent
871b73674d
commit
6b83aef6a1
@@ -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)
|
||||
|
Reference in New Issue
Block a user