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:
Joe Groff
2015-09-11 00:05:25 +00:00
parent 550bcb10f9
commit 0bf684c30d

View File

@@ -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