diff --git a/ChangeLog b/ChangeLog index 1ecb7465..46ea94c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +* 2016-??-??: Version ? + * Bugfix: Memory leak with getdns_get_api_information() + Thanks Robert Groenenberg. + * 2015-12-31: Version 0.9.0 * Update of unofficial extension to the API that supports stub mode TLS verification. GETDNS_AUTHENTICATION_HOSTNAME is replaced by diff --git a/src/context.c b/src/context.c index 343be405..46a34888 100644 --- a/src/context.c +++ b/src/context.c @@ -3055,6 +3055,7 @@ _get_context_settings(getdns_context* context) r |= getdns_list_set_int(transports, i, context->dns_transports[i]); } r |= getdns_dict_set_list(result, "dns_transport_list", transports); + getdns_list_destroy(transports); } r |= getdns_dict_set_int(result, "tls_authentication", context->tls_auth); } @@ -3067,6 +3068,7 @@ _get_context_settings(getdns_context* context) r |= getdns_list_set_int(namespaces, i, context->namespaces[i]); } r |= getdns_dict_set_list(result, "namespaces", namespaces); + getdns_list_destroy(namespaces); } } if (r != GETDNS_RETURN_GOOD) {