More freeing memory (needs to be verified)