Fortinet Interview Question

how to denfend memory leak