(ITS#6744) memory leak when chasing referrals