No, this does not violate the law of conservation of energy.
As the object falls, its potential energy decreases, but at the same time, its kinetic energy increases by the same amount. The total mechanical energy (potential + kinetic) remains constant in the absence of air resistance.
So, energy is not lost—it is just transformed from potential to kinetic, which is in full agreement with the law of conservation of energy.