memory leak when chasing referrals?