Fix crushing due to next_atm[ips] not zeroed after freeing.