From b698e96e6385cadfc5e579fb8f8b7697d0dde72d Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 4 Feb 2014 15:34:37 +0100 Subject: [PATCH] fixup more base_free before context --- src/test/tests_dnssec.c | 2 +- src/test/tests_stub_async.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/tests_dnssec.c b/src/test/tests_dnssec.c index bc34c407..f0fe9aae 100644 --- a/src/test/tests_dnssec.c +++ b/src/test/tests_dnssec.c @@ -117,9 +117,9 @@ main(int argc, char** argv) if (dns_request_return == GETDNS_RETURN_BAD_DOMAIN_NAME) { fprintf(stderr, "A bad domain name was used: %s. Exiting.", this_name); - event_base_free(this_event_base); getdns_dict_destroy(this_extensions); getdns_context_destroy(this_context); + event_base_free(this_event_base); return (GETDNS_RETURN_GENERIC_ERROR); } else { diff --git a/src/test/tests_stub_async.c b/src/test/tests_stub_async.c index fcc6461b..91177af3 100644 --- a/src/test/tests_stub_async.c +++ b/src/test/tests_stub_async.c @@ -110,8 +110,8 @@ main(int argc, char** argv) if (dns_request_return == GETDNS_RETURN_BAD_DOMAIN_NAME) { fprintf(stderr, "A bad domain name was used: %s. Exiting.", this_name); - event_base_free(this_event_base); getdns_context_destroy(this_context); + event_base_free(this_event_base); return (GETDNS_RETURN_GENERIC_ERROR); } // dns_request_return = getdns_service(this_context, this_name, NULL, this_userarg, &this_transaction_id,