Index: src/OFURL.m ================================================================== --- src/OFURL.m +++ src/OFURL.m @@ -159,11 +159,11 @@ tmp2++; host = [[OFString alloc] initWithCString: str_c]; pool = [[OFAutoreleasePool alloc] init]; - port_str = [[OFString alloc] initWithCString: tmp2]; + port_str = [OFString stringWithCString: tmp2]; if ([port_str decimalValue] > 65535) @throw [OFInvalidFormatException newWithClass: isa];