From e0f9ab96880e434c9b7b8ab70a4e942e3711e9dd Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 4 Feb 2014 14:16:04 +0100 Subject: [PATCH] Fix abort on exit on Solaris; properly deregister events in evports. --- src/test/tests_stub_async.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/tests_stub_async.c b/src/test/tests_stub_async.c index d43d3c4e..fcc6461b 100644 --- a/src/test/tests_stub_async.c +++ b/src/test/tests_stub_async.c @@ -130,8 +130,10 @@ main(int argc, char** argv) // TODO: check the return value above } /* Clean up */ - event_base_free(this_event_base); getdns_context_destroy(this_context); + /* the event base can only be free'd after the context has removed + * all of its events from it */ + event_base_free(this_event_base); /* Assuming we get here, leave gracefully */ exit(EXIT_SUCCESS); } /* main */