see when an object is at certain height it has potential energy and zero kinetic energy. Here the total energy = PE (Potential energy) + KE (Kinetic Energy).
When a body is dropped from a height its potential energy starts decreasing and the kinetic energy starts to increase. But the increase in KE is equal to the decrease in PE.
(for eg. if the PE at a certain height is 100J, and when it is made to fall from the height the PE starts to decrease. So if the PE at some point is 95 dat means the decrease in PE is 100 - 95 = 5J. Thus, the KE at that same point would be 5. This means the amount or rate at which the PE decreases, the KE increases with the same amount or same rate)
So now as per question in a freely falling body the KE increase, at the same time the PE is drecreases with same amount. So the total enery remains the same.
Thus, the law of conservation of energy is not viloated since energy remains same.
If you have any doubt plz ask, i know its a bit lenghty.