Turkish comedian Deniz Goktas was released from prison on Monday after spending nearly three months in pretrial detention over remarks in a stand-up show that went viral on YouTube.