dnsapi: Free all allocated records instead of just the last one.
This commit is contained in:
parent
5213b4a3f2
commit
f9b213ff7b
|
@ -537,7 +537,7 @@ exit:
|
|||
DNS_RRSET_TERMINATE( rrset );
|
||||
|
||||
if (ret != ERROR_SUCCESS)
|
||||
DnsRecordListFree( (DNS_RECORD *)record, DnsFreeRecordList );
|
||||
DnsRecordListFree( rrset.pFirstRR, DnsFreeRecordList );
|
||||
else
|
||||
*recp = (DNS_RECORDA *)rrset.pFirstRR;
|
||||
|
||||
|
|
Loading…
Reference in New Issue