It shall be unlawful for an owner of a female cat or dog, while such animal is in heat or in season, to allow her to run loose. Said animal must be confined in a kennel or in a place of confinement, in such a manner said animal cannot get in or out of said kennel or place of confinement.