Less than a day after a judge gave rapper Kodak Black a shot at redemption by approving a plea deal that would see him dodge jail time, his legal saga took another twist -- just as he was about to be released from the Broward Main Jail.



Now, he's being held on two warrants that were discovered after his hearing Tuesday. One warrant, from out of state, alleges criminal sexual conduct, a felony, while the other, from another Florida county, accuses him of two counts of misdemeanor cannabis possession, according to the Broward Sheriff's Office website.



Black, whose real name is Dieuson Octave, was in the process of being released from the Fort Lauderdale jail when deputies discovered the warrants, a sheriff's spokeswoman said.



"At this point he's still going to be in jail," Joy Oglesby said Wednesday. "He's not going to be released."



Oglesby said one warrant is from St. Lucie County, Florida, while the other is from Florence, South Carolina. Oglesby didn't have further information about the charges outlined in the warrants, the law enforcement agencies behind them, or when the warrants had been issued.



Asked how long Octave would continue to be held in the Broward jail, Oglesby said in an email: "Until the agencies holding the warrants extradite him."



Neither of Kodak Black's lawyers, Gary Kollin and Allan Stephen Zamren, responded to calls requesting comment.



Octave, who grew up in Pompano's Golden Acres public housing development, has been building a buzz after having independently released four mixtapes -- an almost but not-quite album in hip-hop culture -- since 2013. He's been widely touted as one of the hottest emerging rappers, and is signed to Atlantic Records.



He's considered such a hot commodity that Atlantic sent several executives to Fort Lauderdale for Tuesday's court hearing. Michael Kushner, an executive vice president at the label, said Black has a bright future as a recording artist, and that his body of work, at such a young age, is akin to that of more established artists.



The courtroom was filled with family, friends, and fans who were all jubilant after Judge Lisa Porter approved the plea deal, sentencing Octave to a year of house arrest and five years of probation. Octave also appeared happy, and smiled widely as the hearing wrapped up.



He was to be released after the hearing. And then the warrants were discovered.



Before Tuesday's hearing, Octave had been facing numerous charges including robbery, false imprisonment, fleeing a law enforcement officer and possession of a firearm by a delinquent — charges that carried a maximum sentence of 55 years.



As of Wednesday night, he was still in the jail, records show.



Staff writer Attiyya Anthony contributed to this report.



brettclarkson@sunsentinel.com or Twitter @BrettClarkson_