mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
eventpoll: Don't allocate Entry on collect stage
The PB read engine will do it for us. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
630d1741c2
commit
2b2a40a20d
1 changed files with 1 additions and 5 deletions
|
|
@ -161,11 +161,7 @@ int collect_eventpoll(void)
|
|||
struct eventpoll_tfd_file_info *info;
|
||||
|
||||
info = xmalloc(sizeof(*info));
|
||||
if (info) {
|
||||
info->tdefe = xmalloc(sizeof(*info->tdefe));
|
||||
if (!info->tdefe)
|
||||
goto err;
|
||||
} else
|
||||
if (!info)
|
||||
goto err;
|
||||
|
||||
ret = pb_read_eof(image_fd, &info->tdefe, eventpoll_tfd_entry);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue