mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
util: zero the events pointer to avoid its double free
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
90f043dea7
commit
7d63ceaecd
1 changed files with 1 additions and 0 deletions
|
|
@ -1323,6 +1323,7 @@ int epoll_prepare(int nr_fds, struct epoll_event **events)
|
|||
|
||||
free_events:
|
||||
xfree(*events);
|
||||
*events = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue