mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
crtools: Make close_cr_fdset being safe to be called with closed fd-set
It was being done intentionally to be able to call close_cr_fdset several times in a row, bring this ability back. Otherwise I'm getting glibc complains about attemt to free already freed memory. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
@@ -87,7 +87,7 @@ int convert_to_elf(char *elf_path, int fd_core);
|
||||
|
||||
struct cr_fdset *prep_cr_fdset_for_dump(int pid, unsigned long use_mask);
|
||||
struct cr_fdset *prep_cr_fdset_for_restore(int pid, unsigned long use_mask);
|
||||
void close_cr_fdset(struct cr_fdset *cr_fdset);
|
||||
void close_cr_fdset(struct cr_fdset **cr_fdset);
|
||||
|
||||
void free_mappings(struct list_head *vma_area_list);
|
||||
|
||||
|
Reference in New Issue
Block a user