Michael Herf
2014-10-06 23:50:13 UTC
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 ***@freehaven.net with
unsubscribe libevent-users in the body.
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 ***@freehaven.net with
unsubscribe libevent-users in the body.