Fortinet interview question

How to debug memory leak?