Latest wallet 2.2.1 has bad memory leak, currently uses over 5gb growing.
dunno how you've come to this conclusion, but would need some substantial evidence to support the claim as none of my instances across multiple platforms are anywhere near that after weeks of running. File an issue on github and give some details.
https://github.com/PIVX-Project/PIVX/issues