Every grand juror, district attorney, clerk, judge, or other officer, who, excepting by issuing or in executing a warrant to arrest the defendant, willfully discloses the fact of a presentment or indictment having been made for a felony, until the defendant has been arrested, is guilty of a misdemeanor.