Memory leak in 5.2

I was going to migrate to 5.2 from 5.1 and now I don’t want to, but thanks a lot for helping community, you are a hero!