He had already found out Fredo was the traitor in the family

Then still recklessly hangs around in Havana - Roth's kinda town, attends the Presidential party with no protection having dispatched Bussetta on murder duties and knowing he is a dead man once the party is over