Last fixed counting mistake.

Free all data, too.