The potential energy of freely falling object decreases and its kinetic energy increases (as its velocity increases) progressively. So, in this way the total mechanical energy (Kinetic energy + potential energy) remains constant. Thus, the law of conservation of energy is not violated.