r15320@tombo: nickm | 2008-04-24 21:29:06 -0400

Yes, niels says this is safe.


svn:r727
This commit is contained in:
Nick Mathewson 2008-04-25 01:29:15 +00:00
parent 94fb4d0a1e
commit fe2e7307f3

View File

@ -688,8 +688,7 @@ event_new(struct event_base *base, evutil_socket_t fd, short events, void (*cb)(
void
event_free(struct event *ev)
{
/* make sure that this event won't be coming back to haunt us.
* XXX this is safe, right? */
/* make sure that this event won't be coming back to haunt us. */
event_del(ev);
mm_free(ev);
}