Svetozar Marovic, who served as president of the joint state of Serbia and Montenegro until the two countries split, was released from custody Tuesday after he signed a plea bargain with prosecutors who accused him of involvement in a number of corruption cases that defrauded the local budget of Budva of millions of dollars in recent years.