He loses the roster spot, not the contract. The NFL lacks such assurances for most players, but makes up for some of it with signing bonuses up front. I doubt a bench-riding no-name would get that, though.
I hope we blow out the Jazz and Badji gets a put-back dunk or an alley-oop lob where he tears the rim down.