memleak fix

heap garbage collected upon entering function
Merge branch 'master' of https://github.com/kiniry-supervision/walking-with-dinosaurs