Released players still count against your cap until their contract runs out (there is more to it in real-life of course, see the full rules
here if you are interested). You need to let the player's contract run out or trade players with long contracts for players with expiring contracts to get the salary off your books and get cap room.