2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +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:
Pavel Emelyanov 2012-07-24 10:22:35 +04:00
parent 630d1741c2
commit 2b2a40a20d

View File

@ -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);