Free some memories.