From cdbb2373f4d13f7a5eb69daaf0a172779ccc0040 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 25 Jun 2020 21:40:40 +0300 Subject: [PATCH] test: "fix" (with a quirk) leak in ssl/bufferevent_wm (w/o defer callbacks) --- test/regress_ssl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/regress_ssl.c b/test/regress_ssl.c index 4b91f11d..37dc334d 100644 --- a/test/regress_ssl.c +++ b/test/regress_ssl.c @@ -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[] = {