impersonated_credentials.Credentials.sign_bytes leaks socket #1122
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
_#### Environment details
google-auth
version: 2.11.0Steps to reproduce
SA_EMAIL
.iam.serviceAccountTokenCreator
. i.e:pip install google-auth requests
.It looks like the bug is here
google-auth-library-python/google/auth/impersonated_credentials.py
Line 289 in bb5c979
The requests session object is created but it's never closed. It should eventually be closed by the GC but really since it's no longer required it should be closed in this method.
The text was updated successfully, but these errors were encountered: