The reaction that releases energy as heat is called an Exothermic reaction. This reaction does obey the law of conservation by preserving the energy present in the molecule and converting it to thermal heat to maintain it's from. Most reactions obey the law of conservation of energy.