-(UserDetail *)functionCheck :(NSString *)str { UserDetail *d2=[[UserDetail alloc] init]; NSLog(@\"check address::::::> %p\",&d2); d2.auth_token=str
If you are in NON-ARC environment, replace your return statement of the function with return [d2 autorelease]. On ARC, you don't need to do anything.