@@ -37,16 +37,16 @@ saddr_len = 0; return self; } -- free +- (void)dealloc { if (sock != INVALID_SOCKET) close(sock); - return [super free]; + [super dealloc]; } - connectTo: (const char*)host onPort: (uint16_t)port { @@ -174,16 +174,16 @@ addrlen = sizeof(struct sockaddr); @try { addr = [newsock allocWithSize: sizeof(struct sockaddr)]; } @catch (OFException *e) { - [newsock free]; + [newsock dealloc]; @throw e; } if ((s = accept(sock, addr, &addrlen)) == INVALID_SOCKET) { - [newsock free]; + [newsock dealloc]; @throw [OFAcceptFailedException newWithClass: isa]; } newsock->sock = s; newsock->saddr = addr;