From 5d1f65b3476d2a48cc7c528b3c84fb8bb4c0ece0 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 20 Mar 2015 15:43:43 +0000 Subject: [PATCH] Reorder to C order git-svn-id: http://svn.osgeo.org/postgis/trunk@13374 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/gserialized_typmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgis/gserialized_typmod.c b/postgis/gserialized_typmod.c index a9903d9f0..7adaafeef 100644 --- a/postgis/gserialized_typmod.c +++ b/postgis/gserialized_typmod.c @@ -133,9 +133,9 @@ GSERIALIZED* postgis_valid_typmod(GSERIALIZED *gser, int32_t typmod) if ( typmod_type == POINTTYPE && geom_type == MULTIPOINTTYPE && gserialized_is_empty(gser) ) { - pfree(gser); LWPOINT *empty_point = lwpoint_construct_empty(geom_srid, geom_z, geom_m); geom_type = POINTTYPE; + pfree(gser); if ( gserialized_is_geodetic(gser) ) gser = geography_serialize(lwpoint_as_lwgeom(empty_point)); else -- 2.50.1