mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Now that sudo_ev_base_free() removes all events before freeing we
don't need to do this by hand.
This commit is contained in:
@@ -936,13 +936,7 @@ del_io_events(void)
|
||||
|
||||
(void) sudo_ev_loop(evbase, SUDO_EVLOOP_NONBLOCK);
|
||||
|
||||
/* Free temporary event base. */
|
||||
SLIST_FOREACH(iob, &iobufs, entries) {
|
||||
if (iob->revent != NULL)
|
||||
sudo_ev_del(evbase, iob->revent);
|
||||
if (iob->wevent != NULL)
|
||||
sudo_ev_del(evbase, iob->wevent);
|
||||
}
|
||||
/* Free temporary event base, removing its events. */
|
||||
sudo_ev_base_free(evbase);
|
||||
|
||||
debug_return;
|
||||
|
Reference in New Issue
Block a user