firebase-ios-sdk: Memory leak in GULNetworkURLSession
- Xcode version: 10.1 beta (10O23u)
- Firebase SDK version: 5.9.0
- Firebase Component: GoogleUtilities/Network
- Component version: 5.2
Steps to reproduce:
Configure Firebase and run app in Instruments, it will show many leaks related to NSURLSession. These sessions need to be invalidated to free all resources they are holding to, placing calls to [session finishTasksAndInvalidate]; before returning from functions that create NSURLSession, seems to fix the issue.
Relevant Code:
[FIRApp configure];
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 4
- Comments: 15 (6 by maintainers)
@morganchen12 I have the same issue with lots of memory leaks generated by Firebase. I am attaching the screenshot.
Here is my setup:
I would be happy to share my project with you as long as there is some secure way of doing this.
@morganchen12
I can’t reproduce it now. Don’t know what has changed. If it resurfaces I will let you know how it can be reproduced.