prebid-mobile-ios
prebid-mobile-ios copied to clipboard
Memory Leak when fetch Demand
Describe the bug A clear and concise description of what the bug is. Memory leak on calling fetchdemand.
To Reproduce Steps to reproduce the behavior: Call FetchDemand, see stack traces below:
Expected behavior A clear and concise description of what you expected to happen. No memory leak reported in instrument
Smartphone (please complete the following information):
- Device: iphone 14
- OS: v16
Additional context Perhaps linked to https://developer.apple.com/documentation/foundation/urlsession/1411597-init & this when .invalidate() is currently used in the AdUnit.swift (not sure here.)
@rBeefrz was this recorded in a debug build? A strong Self is passed in a debug build on line 223 of PrebidServerConnection.swift which can definitely cause memory leaks.