From 2c8a3364b6af6a1d9bfec80d1a2b6632afef21ee Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 19 Dec 2012 20:52:13 +0000 Subject: [PATCH] Fix leak in cu_geodetic test git-svn-id: http://svn.osgeo.org/postgis/trunk@10864 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/cunit/cu_geodetic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/liblwgeom/cunit/cu_geodetic.c b/liblwgeom/cunit/cu_geodetic.c index 9966731f8..d154c061a 100644 --- a/liblwgeom/cunit/cu_geodetic.c +++ b/liblwgeom/cunit/cu_geodetic.c @@ -1100,13 +1100,14 @@ static void test_ptarray_contains_point_sphere_iowa(void) rv = ptarray_contains_point_sphere(pa, &pt_outside, &pt_to_test); CU_ASSERT_EQUAL(rv, LW_TRUE); + + lwgeom_free(lwg); } static void test_lwgeom_distance_sphere(void) { LWGEOM *lwg1, *lwg2; - GBOX gbox1, gbox2; double d; SPHEROID s; @@ -1114,9 +1115,6 @@ static void test_lwgeom_distance_sphere(void) spheroid_init(&s, 6378137.0, 6356752.314245179498); s.a = s.b = s.radius; - gbox1.flags = gflags(0, 0, 1); - gbox2.flags = gflags(0, 0, 1); - /* Line/line distance, 1 degree apart */ lwg1 = lwgeom_from_wkt("LINESTRING(-30 10, -20 5, -10 3, 0 1)", LW_PARSER_CHECK_NONE); lwg2 = lwgeom_from_wkt("LINESTRING(-10 -5, -5 0, 5 0, 10 -5)", LW_PARSER_CHECK_NONE); -- 2.50.1