General Gasslefield said: "I will be shot." If this statement was true, he would have been hung and thus not be shot. But then his statement would be false, which implies that he should be shot, making the statement true again, etc... In other words: the verdict of the court-martial could not be executed and the general was released.
Zaxton6 was correct.