Merge pull request #143 from wtoorop/bugfix/memory_leaks

Fix memory leak with getdns_get_api_information()
This commit is contained in:
wtoorop 2016-02-26 12:26:53 +01:00
commit 8f66d69286
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) {