Sandro, something in your geos/empty/collection work is leaking slightly, perhaps? it's showing up in the Travis CI, this build is off the 3.1 stable branch. https://travis-ci.org/github/pramsey/postgis/jobs/752331218 P.