]> granicus.if.org Git - postgis/commitdiff
properly release reported error message string
authorSandro Santilli <strk@keybit.net>
Wed, 6 Jul 2011 06:46:50 +0000 (06:46 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 6 Jul 2011 06:46:50 +0000 (06:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7600 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_tester.c

index ae32cadf416bdb12397959f6cc38df7ebbf554f2..8934b270174dd5de168af1602386f6999e6adf56 100644 (file)
@@ -208,6 +208,7 @@ cu_errorreporter(const char *fmt, va_list ap)
        }
 
        strncpy(cu_error_msg, msg, MAX_CUNIT_ERROR_LENGTH);
+       free(msg);
 }
 
 void