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