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

This commit is contained in:
Hans Leidekker 2006-06-17 15:24:32 +02:00 committed by Alexandre Julliard
parent 5213b4a3f2
commit f9b213ff7b
1 changed files with 1 additions and 1 deletions

View File

@ -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;