Commit 81f9095a authored by Paul Ramsey's avatar Paul Ramsey

Remove possible double free


git-svn-id: http://svn.osgeo.org/postgis/trunk@13575 b70326c6-7e19-0410-871a-916f4a2858ee
parent 67e0c94b
......@@ -921,13 +921,11 @@ static void test_lwgeom_simplify(void)
l = lwgeom_simplify(lwgeom_from_wkt("LINESTRING(0 0, 1 0, 1 1, 0 1, 0 0)", LW_PARSER_CHECK_NONE), 10, LW_FALSE);
CU_ASSERT_EQUAL(l, NULL);
lwgeom_free(l);
lwfree(ewkt);
/* Simplify and collapse */
l = lwgeom_simplify(lwgeom_from_wkt("POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))", LW_PARSER_CHECK_NONE), 10, LW_FALSE);
CU_ASSERT_EQUAL(l, NULL);
lwgeom_free(l);
lwfree(ewkt);
/* Not simplifiable */
l = lwgeom_simplify(lwgeom_from_wkt("LINESTRING(0 0, 50 1.00001, 100 0)", LW_PARSER_CHECK_NONE), 1.0, LW_FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment