diff --git a/contrib/postgis/postgis_mest.c b/contrib/postgis/postgis_mest.c index c6cb249..e41811d 100755 --- a/contrib/postgis/postgis_mest.c +++ b/contrib/postgis/postgis_mest.c @@ -40,7 +40,7 @@ geometry_mest_extract(PG_FUNCTION_ARGS) if (! lwtype_is_collection(gstype)) { *nkeys = 1; - PG_RETURN_POINTER(gs); + PG_RETURN_POINTER(&gs); } LWGEOM *lwgeom = lwgeom_from_gserialized(gs);