Skip to content

URLSession leak #368

@rickbdotcom

Description

@rickbdotcom

Describe the bug?

Okta framework is showing memory leaks when run in debug memory graph. Appears to be caused by not invalidating the session after use.

https://lapcatsoftware.com/articles/NSURLSession.html

What is expected to happen?

Framework should not leak memory.

What is the actual behavior?

URLSession is leaking.

Reproduction Steps?

Initialize OktaOidcStateManager and observe memory leaks in Debug Memory Graph.
All the reported leaks in this screenshot appear to be from the URLSession allocated in OktaOidcConfig.setupURLSession

Image

Additional Information?

No response

SDK Version(s)

3.11.2

Build Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions