-
Bug
-
Resolution: Done
-
Undefined
-
None
Before reporting an issue
[x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
user-profile
Describe the bug
Due to the use or anonymous inner classes, the code holds on to the instance and the session.
<img width="694" height="195" alt="Image" src="https://github.com/user-attachments/assets/220d0da2-5576-4bcf-b3ca-28efee4c47b2" />
Version
main
Regression
[ ] The issue is a regression
Expected behavior
There should be no leak of the KeycloakSession
Actual behavior
There is a leak
How to Reproduce?
Start up an instance, log in once to initialize the DeclarativeUserProfileProvider, and take a memory snapshot.
Anything else?
I'll provide a PR
- links to