savecore: fix memory leaks
Most of these memory leaks are long-standing, but r362790 added a few more.
Valgrind is unable to detect them due to Capsicum. I don't know why Coverity
never spotted them.
asomers on Tue, Jun 30, 12:15 AM.Authored by
I tend to agree. I would be more supportive if the change involved refactoring DoFile() a bit, since that function is quite sprawling.