I am using this code. I have huge number of urlSessions but this caused huge memory retain in libnetwork
NSURLSessionConfiguration* _configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
NSURLSession* urlSession = [NSURLSession sessionWithConfiguration:_configuration delegate:_delegate delegateQueue:NSOperationQueue.mainQueue];
NSURLSessionDataTask* dataTask = [urlSession dataTaskWithRequest:request];
[dataTask resume];
how can i avoid this memory retain. I have tried all possible fixes by not using urlCache and all. below is xcode memory retain snippet -
please suggest how I can avoid this memory retain?