Hans Leidekker : dnsapi: Free all allocated records instead of just the last one.
Module: wine Branch: refs/heads/master Commit: f9b213ff7b7151bb7739aa19b810d9c0cb996a9a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f9b213ff7b7151bb7739aa19... Author: Hans Leidekker <hans(a)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;
participants (1)
-
Alexandre Julliard