Running away is not an offence under the Afghan penal code, but the supreme court advised in 2010 that women and girls who flee their homes should be locked up as a precaution against prostitution and promiscuity.