The return to the writ of habeas corpus issued herein shows that the petitioner was convicted in the police court of the city and county of San Francisco of the crime of adultery, and thereupon sentenced to be imprisoned in the county jail for one year, and that he is now held in custody under commitment based upon said judgment.
The judgment is void. Adultery is not made a crime by any statute of California. It is the living together in open and notorious cohabitation and adultery that is made criminal by the statute (Stats. 1871-72, p. 380), and it has been rightly held that mere adultery without the notorious cohabitation does not constitute the offense. (People v. Gates, 46 Cal. 52.)
The judgment being void the imprisonment is necessarily unlawful, and the prisoner must be discharged. It is so ordered.