Avoid unchecked calls to proto release methods.
Avoid unchecked calls to proto release methods.

PiperOrigin-RevId: 369013134

tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime