2
0
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:
Todd C. Miller
2013-10-26 07:52:59 -06:00
parent e16c99cd2a
commit d8b368b503
2 changed files with 2 additions and 8 deletions

View File

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