From 3da70546caca8bd2c645348287e98117611d8821 Mon Sep 17 00:00:00 2001 From: Neel Goyal Date: Mon, 4 Nov 2013 12:57:46 -0500 Subject: [PATCH] Fix synchronous example to destroy the extensions dict --- src/example/example_synchronous.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/example/example_synchronous.c b/src/example/example_synchronous.c index bf845255..a08ef79a 100644 --- a/src/example/example_synchronous.c +++ b/src/example/example_synchronous.c @@ -70,6 +70,8 @@ main() /* Make the call */ getdns_return_t dns_request_return = getdns_general_sync(this_context, this_name, this_request_type, this_extensions, &this_response_length, &this_response); + /* free the extensions */ + getdns_dict_destroy(this_extensions); if (dns_request_return == GETDNS_RETURN_BAD_DOMAIN_NAME) { fprintf(stderr, "A bad domain name was used: %s. Exiting.", this_name);