aws-mobile-appsync-sdk-ios
aws-mobile-appsync-sdk-ios copied to clipboard
Fix: release the session
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Hi @bhushanever, could you describe why this change is necessary?
Hi @dpilch,
Actually, in my application, I am using appsync-sdk-ios so while calling API I am facing a memory leak issue, so we tested many times and we come up with this.
Why do we change this:- Since a new session is used for each request, we can safely allow the session to be invalidated after the request has been completed.
@dpilch Please approve this PR.
Thanks in advance.
The change appears to cause the unit and integration tests to fail. Could you take a look and update the tests if necessary?