Memory leak with basic TTree

Well, that really means that your system is screwed.
First, make sure that you “completely remove” / “purge” (i.e. “remove with any associated configuration files”) all ROOT related packages (e.g., dpkg --list "*root*lpc*"; sudo apt-get purge "*root*lpc*").
Then, delete your current ROOT binaries and build it from scratch again.