diff --git a/TestFoundation/TestNSKeyedArchiver.swift b/TestFoundation/TestNSKeyedArchiver.swift index 56977bf56b..8ab1ddd537 100644 --- a/TestFoundation/TestNSKeyedArchiver.swift +++ b/TestFoundation/TestNSKeyedArchiver.swift @@ -295,11 +295,6 @@ class TestNSKeyedArchiver : XCTestCase { let s1 = String(cString: charPtr) let s2 = String(cString: expectedCharPtr!) -#if !DEPLOYMENT_RUNTIME_OBJC - // On Darwin decoded strings would belong to the autorelease pool, but as we don't have - // one in SwiftFoundation let's explicitly deallocate it here. - expectedCharPtr!.deallocate() -#endif return s1 == s2 }) }