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);