Menu

#62 Memory Leak under Garbage Collection

open
5
2011-05-17
2011-05-17
Frank Reiff
No

First off: Thanks for making this framework available to other developers.

I'm using RegExKitLite in a 64-bit garbage collected environment and the Analyzer of XCode 4.0 finds several "Dead store" and "Core Foundation: Potential leak" in the most current version of the framework.

I have found the analyzer to be very thorough and to find problems in my own core foundation code, so I'm fairly certain that "potential leak" translates into "real leak". On top of that it looks like my application has a core foundation leak somewhere, but only when regular expressions are used and the only leaks that the analyzer can find is in the RegExKitLite.m file..

I don't really understand the RegExKitlite code and I'm reluctant to just go and put in CFMakeCollectable statements everywhere, but I think that's probably all that's required.

I'm using LLVM 2.0/ 64-bit/ 10.6 only, in case it's relevant.

Thank you for looking into this.

Best regards,

Frank

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.