several memory leaks fixed

including a big one!
now there shouldn't be any left...

version bumped to 6.4.5