]> granicus.if.org Git - postgis/commitdiff
Fix memory leak in unit test
authorDaniel Baston <dbaston@gmail.com>
Mon, 4 Sep 2017 17:55:05 +0000 (17:55 +0000)
committerDaniel Baston <dbaston@gmail.com>
Mon, 4 Sep 2017 17:55:05 +0000 (17:55 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15622 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_lwstroke.c

index 26f9c3385b3ce346ac2fd06b0af2f6174f2140f1..318f8300f8cdef349f0b43f653da11f3efaf1714 100644 (file)
@@ -206,6 +206,7 @@ static void test_lwcurve_linearize(void)
        ASSERT_STRING_EQUAL(str, "LINESTRING(72 -66,34 -38,16 4,20 50)");
        lwfree(str);
        lwgeom_free(out);
+       lwgeom_free(in);
 
        /*
         * Clockwise ~90 degrees north-west to south-west quadrants