Fix a leak in -[IOSClass getAnnotations].
Fix a leak in -[IOSClass getAnnotations].

-getAnnotations calls IOSClass_GetMetadataOrFail through
-getDeclaredAnnotations, but the function throws ReflectionStrippedError if the
class does not have metadata. Therefore all objects instantiated before that
point should be autoreleased.

PiperOrigin-RevId: 367547674

google/j2objc,google/j2objc,groschovskiy/j2objc,groschovskiy/j2objc,mirego/j2objc,google/j2objc,mirego/j2objc,mirego/j2objc,groschovskiy/j2objc,groschovskiy/j2objc,mirego/j2objc,google/j2objc,groschovskiy/j2objc,mirego/j2objc,mirego/j2objc,groschovskiy/j2objc,google/j2objc,google/j2objc