free neighbours memory