Fixed memory leak in mixed gradient pressure b.c.