How do you solve memory leaks in c?

Can you answer this question?