I see that lwalloc traces back eventually palloc, and is there (?) to provide a means to compile and use liblwgeom separate from pgsql. I also see a few bare malloc calls, in the parser mostly, but also in lwgeom_geos_c.c and wonder if there's any reason not to corral those back into the pgsql process space? p.