From f9b213ff7b7151bb7739aa19b810d9c0cb996a9a Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Sat, 17 Jun 2006 15:24:32 +0200 Subject: [PATCH] dnsapi: Free all allocated records instead of just the last one. --- dlls/dnsapi/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c index 6e84eb4a48e..2bcd913b8f6 100644 --- a/dlls/dnsapi/query.c +++ b/dlls/dnsapi/query.c @@ -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;