mirror of https://github.com/getdnsapi/getdns.git
Merge pull request #143 from wtoorop/bugfix/memory_leaks
Fix memory leak with getdns_get_api_information()
This commit is contained in:
commit
8f66d69286
|
@ -1,3 +1,7 @@
|
||||||
|
* 2016-??-??: Version ?
|
||||||
|
* Bugfix: Memory leak with getdns_get_api_information()
|
||||||
|
Thanks Robert Groenenberg.
|
||||||
|
|
||||||
* 2015-12-31: Version 0.9.0
|
* 2015-12-31: Version 0.9.0
|
||||||
* Update of unofficial extension to the API that supports stub mode
|
* Update of unofficial extension to the API that supports stub mode
|
||||||
TLS verification. GETDNS_AUTHENTICATION_HOSTNAME is replaced by
|
TLS verification. GETDNS_AUTHENTICATION_HOSTNAME is replaced by
|
||||||
|
|
|
@ -3055,6 +3055,7 @@ _get_context_settings(getdns_context* context)
|
||||||
r |= getdns_list_set_int(transports, i, context->dns_transports[i]);
|
r |= getdns_list_set_int(transports, i, context->dns_transports[i]);
|
||||||
}
|
}
|
||||||
r |= getdns_dict_set_list(result, "dns_transport_list", transports);
|
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);
|
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_list_set_int(namespaces, i, context->namespaces[i]);
|
||||||
}
|
}
|
||||||
r |= getdns_dict_set_list(result, "namespaces", namespaces);
|
r |= getdns_dict_set_list(result, "namespaces", namespaces);
|
||||||
|
getdns_list_destroy(namespaces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (r != GETDNS_RETURN_GOOD) {
|
if (r != GETDNS_RETURN_GOOD) {
|
||||||
|
|
Loading…
Reference in New Issue