Fix memory leak in MultilevelCount.