http://llvm.org/bugs/show_bug.cgi?id=8185
Summary: Leaks in main()
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
It is fairly common not to bother explicitly freeing objects just before a
return statement in main(), as the kernel will reclaim the memory immediately
afterwards. It's somewhat misleading to categorise things as leaks when they
occur in the program's main() function. The analyser encourages you to
explicitly -release Objective-C objects just before exiting the program, which
can cause thousands of -dealloc methods to be called, doing nothing other than
delaying the program's exit.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs