<div dir="ltr">Dear PETSc dev team,<div>   If PETSc function returns an error, what's the correct way to clean PETSc? Particularly how to clean up the memory?</div><div><br></div><div>Thanks,</div><div>Sam</div></div>