Are you sure this is correct?<div>KSPDestroy(&eksp) will still call PCDestroy() on subpc:</div><div><a href="http://petsc.cs.iit.edu/petsc/petsc-dev/file/76f5543c7e89/src/ksp/ksp/interface/itfunc.c:774">http://petsc.cs.iit.edu/petsc/petsc-dev/file/76f5543c7e89/src/ksp/ksp/interface/itfunc.c:774</a></div>

<div>Dmitry.<br><div><br><div class="gmail_quote">On Thu, Mar 29, 2012 at 12:54 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><div class="gmail_quote">On Thu, Mar 29, 2012 at 10:45, Dmitry Karpeev <span dir="ltr"><<a href="mailto:karpeev@mcs.anl.gov" target="_blank">karpeev@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>Pushed: <a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/76f5543c7e89" target="_blank">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/76f5543c7e89</a></div></blockquote></div><br></div><div>And the corresponding update to make GAMG stop leaking this PC.</div>


<div><br></div><div><a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/2d7a3ef1709a" target="_blank">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/2d7a3ef1709a</a></div>
</blockquote></div><br></div></div>