Changed some frees to deletes.
Commend out  a few chnages from b5f149822c67f130b9ce129dd75504a5e8012355

Maybe possibly changing repos to TFS, they have lifecycle management things.