You are probably viewing a Level 1 cache (Change Tracker) that uses the Entity Framework below it. To learn more about this, check this out. I would be surprised if there would be a memory leak, it is more likely that this is just normal behavior. How much memory do you see a leak?
To free up memory, try using a different merge option (for example, NoTracking). AppendOnly is used by default, which will be used for types in memory that you can use again. The NoTracking merge option will go to the database every time and not store anything in memory.
Hope this helps.
source share