both are right but i dont think the reason is the explanation of assertion one....
Molality is moles per kilogram of solvent while molarity is mole per litre....
kilogram is a unit of mass while litre is a unit of volume....on change in temp...volume changes...and thus the molarity changes but the molality does not