iphone - Automatic Reference Counting is not releasing calloc -
i using arcin application, encoding string usingcalloc` while running app in profile shows memory leak @ calloc.
whether arc release calloc or not?
if no, why not releasing , how release calloc?
thanks,
unfortunately arc manages memory objective-c objects, in case have handle memory management yourself.
to "release" calloced memory need call free on when no longer used:
free(strresult);
Comments
Post a Comment