Symptom
There is a memory leak in the LDAPAdaptor example source code located in $NEXT_ROOT/Developer/Examples/EnterpriseObjects/Sources/LDAPAdaptor
Solution
A memory leak exists in LDAPChannel.m line 417. The following method declares an NSMutableArray, but never autoreleases it:
- (NSArray *) ldapAttributes
The original line looks like this:
ldapAtts = [[NSMutableArray alloc] initWithCapacity:count];
To correct the leak, change line 417 to read:
ldapAtts = [[[NSMutableArray alloc] initWithCapacity:count] autorelease];
After making this source code change, be sure to recompile the adaptor to incorporate the modifications.