Nagarro interview question

how to handle memory leak issues