I am trying to use valgrind to find leaks from an objective-c program running on Ubuntu with GNUstep.
However, even the following simple code causes valgrind to throw lots of memory leaks (mostly from NSZoneMalloc).
#import <Foundation/Foundation.h>
int main()
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[pool drain];
return 0;
}
After googling a bit about this, I did find that these leaks are expected: http://lists.gnu.org/archive/html/gnustep-dev/2004-08/msg00063.html
Has anyone had experience using valgrind with GNUStep? Would be great if someone can share some experience on how to suppress these kind of errors from valgrind. So the "real" leaks can be clearly detected.