When a solid is heated, vacancy defect is produced in the crystal. This is because on heating , some atoms or ions leave the alttice site completely, i.e, some lattice sites become vacant. As a result of this defect, the density of the substance because some atoms/ions leave the crystal completely .