fixes some memory leaks

gets duke's fix in the change log, memory fixes, and that should be it