<div class="gmail_quote">On Sat, Oct 8, 2011 at 12:11, Shiyuan <span dir="ltr">&lt;<a href="mailto:gshy2014@gmail.com">gshy2014@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I did.  log_summary shows ksp is destroyed. But I called KSPDestroy() after VecDestroy().  That might cause the problem.</blockquote></div><br><div>Calling KSPDestroy() after VecDestroy() is not a problem.</div><div><br></div>
<div>Run with -malloc_dump to see if there is actually a memory leak.</div>