Commit f9b213ff authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

dnsapi: Free all allocated records instead of just the last one.

parent 5213b4a3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment