Hans Leidekker : dnsapi:
Free all allocated records instead of just the last one.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 19 03:35:31 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: f9b213ff7b7151bb7739aa19b810d9c0cb996a9a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f9b213ff7b7151bb7739aa19b810d9c0cb996a9a
Author: Hans Leidekker <hans at it.vu.nl>
Date: Sat Jun 17 15:24:32 2006 +0200
dnsapi: Free all allocated records instead of just the last one.
---
dlls/dnsapi/query.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c
index 6e84eb4..2bcd913 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;
More information about the wine-cvs
mailing list