From edf1c075c33f0ab17a7bb947e46c35769e136010 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 26 Jul 2002 19:16:42 +0000 Subject: [PATCH] fixed improper emulation of ellFree --- src/cas/io/bsdSocket/casDGIntfIO.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cas/io/bsdSocket/casDGIntfIO.cc b/src/cas/io/bsdSocket/casDGIntfIO.cc index 68d772c4f..35ab86967 100644 --- a/src/cas/io/bsdSocket/casDGIntfIO.cc +++ b/src/cas/io/bsdSocket/casDGIntfIO.cc @@ -117,11 +117,7 @@ casDGIntfIO::casDGIntfIO (caServerI &serverIn, const caNetAddr &addr, else { // avoid use of ellFree because problems on windows occur if the // free is in a different DLL than the malloc - ELLNODE * nnode = BCastAddrList.node.next; - while ( nnode ) - { - ELLNODE * pnode = nnode; - nnode = nnode->next; + while ( ELLNODE * pnode = ellGet ( & BCastAddrList ) ) { free ( pnode ); } }