mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Runtime: Fix leak in failure path for dynamicCastClassToValueViaObjCBridgeable.
Caught by the leaks runner on DollarReduce perf test. Fixes rdar://problem/22646089. Swift SVN r31873
This commit is contained in:
@@ -2821,7 +2821,7 @@ static bool _dynamicCastClassToValueViaObjCBridgeable(
|
||||
if (!_dynamicCastUnknownClass(srcObject,
|
||||
targetBridgedClass,
|
||||
flags & DynamicCastFlags::Unconditional)) {
|
||||
return false;
|
||||
return _fail(src, srcType, targetType, flags);
|
||||
}
|
||||
|
||||
// Unless we're always supposed to consume the input, retain the
|
||||
|
||||
Reference in New Issue
Block a user