[FINAL] Ensure the memory clearing function is called.