[mapserver-commits] r13196 - trunk/mapserver/mapcache/lib

svn at osgeo.org svn at osgeo.org
Fri Mar 2 09:53:23 EST 2012


Author: hobu
Date: 2012-03-02 06:53:23 -0800 (Fri, 02 Mar 2012)
New Revision: 13196

Modified:
   trunk/mapserver/mapcache/lib/source_mapserver.c
Log:
use char* before I free it #4219

Modified: trunk/mapserver/mapcache/lib/source_mapserver.c
===================================================================
--- trunk/mapserver/mapcache/lib/source_mapserver.c	2012-03-02 14:14:41 UTC (rev 13195)
+++ trunk/mapserver/mapcache/lib/source_mapserver.c	2012-03-02 14:53:23 UTC (rev 13196)
@@ -55,8 +55,8 @@
       char* msg = (char*) msSmallMalloc(MESSAGELENGTH+1);
       msg = msStrdup(errors->message);
 
+      ctx->set_error(ctx,500,"Failed to load mapfile '%s'. Mapserver reports: ",mapserver->mapfile, msg);
       msFree(msg);
-      ctx->set_error(ctx,500,"Failed to load mapfile '%s'. Mapserver reports: ",mapserver->mapfile, msg);
       return;
    }
    mapObj *omap = msNewMapObj();



More information about the mapserver-commits mailing list