Mahatma Gandhi was released from prison after two years into his six-year sentence.
Source
More: Gandhi Arrested for Sedition, Mahatma Gandhi