avoid use of ellFree because we get a freee and a malloc in different dlls

This commit is contained in:
Jeff Hill
2002-05-28 23:56:16 +00:00
parent 4cb33019c9
commit 712d55f3b5

View File

@@ -178,7 +178,15 @@ udpiiu::~udpiiu ()
pChan->disconnect ( limboIIU );
}
ellFree ( & this->dest );
// avoid use of ellFree because problems on windows occur if the
// free is in a different DLL than the malloc
ELLNODE * nnode = this->dest.node.next;
while ( nnode )
{
ELLNODE * pnode = nnode;
nnode = nnode->next;
free ( pnode );
}
socket_close ( this->sock );
}