Index: src/OFASN1BitString.m ================================================================== --- src/OFASN1BitString.m +++ src/OFASN1BitString.m @@ -92,12 +92,12 @@ if (SIZE_MAX / 8 < count - 1) @throw [OFOutOfRangeException exception]; bitStringLength = (count - 1) * 8; - bitStringValue = [[DEREncodedContents - subdataWithRange: of_range(1, count - 1)] copy]; + bitStringValue = [DEREncodedContents subdataWithRange: + of_range(1, count - 1)]; if (unusedBits != 0) bitStringLength -= unusedBits; } @catch (id e) { [self release]; Index: tests/OFBlockTests.m ================================================================== --- tests/OFBlockTests.m +++ tests/OFBlockTests.m @@ -30,11 +30,11 @@ static int (^returnStackBlock(void))(void) { __block int i = 42; - return Block_copy(^ int { return ++i; }); + return [Block_copy(^ int { return ++i; }) autorelease]; } static double forwardTest(void) {