mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
test: "fix" (with a quirk) leak in ssl/bufferevent_wm (w/o defer callbacks)
This commit is contained in:
parent
3b13a64789
commit
cdbb2373f4
@ -974,6 +974,7 @@ regress_bufferevent_openssl_wm(void *arg)
|
||||
|
||||
tt_int_op(client.get, ==, client.limit);
|
||||
tt_int_op(server.get, ==, server.limit);
|
||||
|
||||
end:
|
||||
free(payload);
|
||||
evbuffer_free(client.data);
|
||||
@ -981,6 +982,10 @@ end:
|
||||
evconnlistener_free(listener);
|
||||
bufferevent_free(client.bev);
|
||||
bufferevent_free(server.bev);
|
||||
|
||||
/* XXX: by some reason otherise there is a leak */
|
||||
if (!(type & REGRESS_OPENSSL_FILTER))
|
||||
event_base_loop(base, EVLOOP_ONCE);
|
||||
}
|
||||
|
||||
struct testcase_t ssl_testcases[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user