Clear memory before loading new log.