From 7d63ceaecdff9b0fe9135b7ac3f626cd5c625f1e Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Wed, 20 Jan 2021 23:49:28 -0800 Subject: [PATCH] util: zero the events pointer to avoid its double free Signed-off-by: Andrei Vagin --- criu/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/criu/util.c b/criu/util.c index 91add00f3..634600cec 100644 --- a/criu/util.c +++ b/criu/util.c @@ -1323,6 +1323,7 @@ int epoll_prepare(int nr_fds, struct epoll_event **events) free_events: xfree(*events); + *events = NULL; return -1; }