protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Issues detected by Xcode

Open dimitar-a-dimitrov opened this issue 9 months ago • 1 comments

What version of protobuf and what language are you using? Version: 3.26.1 Language: Objective-C

What operating system (Linux, Windows, ...) and version? iOS 17.5.1

What runtime / compiler are you using (e.g., python version or gcc version) Xcode 15.4

What did you do? We use the Protobuf pod in our iOS project. When I run code analysis (Product --> Analyze) Xcode reports several problems. They are in GBPDescriptor and GBPMessage. The affected methods are:

  • GPBDescriptor.m:413:5 Potential leak of an object stored into 'result'
  • GPBDescriptor.m:482:23 Potential leak of an object stored into 'self'
  • GPBDescriptor.m:482:39 Potential leak of an object stored into 'file'
  • GPBMessage.m:2301:9 Reference-counted object is used after it is released
  • GPBMessage.m:2315:9 Reference-counted object is used after it is released

dimitar-a-dimitrov avatar May 22 '24 10:05 dimitar-a-dimitrov