Fix memory leak with getdns_get_api_information()

Thanks Robert Groenenberg.
This commit is contained in:
Willem Toorop 2016-02-26 12:24:45 +01:00
parent f5e9640ee8
commit 6fd05675aa
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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) {