From: Sandro Santilli Date: Wed, 6 Jul 2011 06:46:50 +0000 (+0000) Subject: properly release reported error message string X-Git-Tag: 2.0.0alpha1~1242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77d678890e2b84fc31724c37328f215b3de055dc;p=postgis properly release reported error message string git-svn-id: http://svn.osgeo.org/postgis/trunk@7600 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_tester.c b/liblwgeom/cunit/cu_tester.c index ae32cadf4..8934b2701 100644 --- a/liblwgeom/cunit/cu_tester.c +++ b/liblwgeom/cunit/cu_tester.c @@ -208,6 +208,7 @@ cu_errorreporter(const char *fmt, va_list ap) } strncpy(cu_error_msg, msg, MAX_CUNIT_ERROR_LENGTH); + free(msg); } void