From: Sandro Santilli Date: Thu, 20 Dec 2012 18:26:48 +0000 (+0000) Subject: Fix leak in cu_stringbuffer test X-Git-Tag: 2.1.0beta2~267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b993d4bbff4e91bab5eb86d1f3c7f666bf4be0de;p=postgis Fix leak in cu_stringbuffer test git-svn-id: http://svn.osgeo.org/postgis/trunk@10880 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_stringbuffer.c b/liblwgeom/cunit/cu_stringbuffer.c index c23380d25..458e68811 100644 --- a/liblwgeom/cunit/cu_stringbuffer.c +++ b/liblwgeom/cunit/cu_stringbuffer.c @@ -30,6 +30,8 @@ static void test_stringbuffer_append(void) str = stringbuffer_getstring(sb); CU_ASSERT_STRING_EQUAL("hello world", str); + + stringbuffer_destroy(sb); } static void test_stringbuffer_aprintf(void) @@ -42,6 +44,8 @@ static void test_stringbuffer_aprintf(void) str = stringbuffer_getstring(sb); CU_ASSERT_STRING_EQUAL("hello 14th world", str); + + stringbuffer_destroy(sb); }