You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we use complete callback to free our handler context. we pass the context to cb_arg through evhttp_request_set_on_complete_cb function.
However, when I read the http.c source code, I found that on_complete wouldn't be called in some case.
In evhttp_connection_incoming_fail function, if error parameter is EVREQ_HTTP_TIMEOUT or EVREQ_HTTP_EOF, function just free evhttp_request without call on_complete. Then the passed cb_arg
is leak.
I want to know is there any method to avoid memory leak?