Menu

#2 Memory leak

open
nobody
None
5
2011-01-20
2011-01-20
New Acct
No

in tinkle/src/main/ElvinConnection.m:
SubscriptionContext *context = [[SubscriptionContext new] retain];

"new" already retains, so you are retaining twice, and only releasing once, causing a memory leak

Discussion


Log in to post a comment.

MongoDB Logo MongoDB