Fortinet interview question

how to denfend memory leak