mirror of https://github.com/getdnsapi/getdns.git
Memory leak in getdns_convert_dns_name_to_fqdn
This commit is contained in:
parent
ca9347b583
commit
1e14430eaf
|
@ -62,7 +62,7 @@ char *
|
||||||
getdns_convert_dns_name_to_fqdn(const char *name_from_dns_response)
|
getdns_convert_dns_name_to_fqdn(const char *name_from_dns_response)
|
||||||
{
|
{
|
||||||
char *str;
|
char *str;
|
||||||
ldns_rdf *rdf = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_DNAME,
|
ldns_rdf *rdf = ldns_rdf_new(LDNS_RDF_TYPE_DNAME,
|
||||||
sizeof_dname((uint8_t *)name_from_dns_response),
|
sizeof_dname((uint8_t *)name_from_dns_response),
|
||||||
name_from_dns_response);
|
name_from_dns_response);
|
||||||
if (!rdf) return NULL;
|
if (!rdf) return NULL;
|
||||||
|
|
Loading…
Reference in New Issue