[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] evtimer_new "leak"



I wrote some code that was leaking on every call to evtimer_new -- I was definitely calling evtimer_del afterwards (sometimes before the timer fired).

To fix the leak, I found out I actually needed to call event_free, instead. Took me a while to go read the libevent code and figure this out.

This seems kinda confusing API-wise, and if my understanding of it is correct, adding an "evtimer_free" macro (also, evsignal_free, ...) or a better explanation could save people some time.

Michael

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.