[mapserver-commits] r10681 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Oct 28 17:34:50 EDT 2010
Author: rouault
Date: 2010-10-28 14:34:50 -0700 (Thu, 28 Oct 2010)
New Revision: 10681
Modified:
trunk/mapserver/maptime.c
Log:
Fix memory leak when _msValidateTime() returns TRUE
Modified: trunk/mapserver/maptime.c
===================================================================
--- trunk/mapserver/maptime.c 2010-10-28 21:30:06 UTC (rev 10680)
+++ trunk/mapserver/maptime.c 2010-10-28 21:34:50 UTC (rev 10681)
@@ -1,5 +1,5 @@
/******************************************************************************
- * $Id:$
+ * $Id$
*
* Project: MapServer
* Purpose: Date/Time utility functions.
@@ -391,6 +391,7 @@
msTimeCompare(&tmend, &tmtimeend) >= 0)
{
msFreeCharArray(atimerange, numranges);
+ msFreeCharArray(atimeextents, numextents);
return MS_TRUE;
}
}
@@ -402,7 +403,8 @@
msTimeCompare(&tmstart, &tmtimestart) <= 0 &&
msTimeCompare(&tmend, &tmtimeend) >= 0)
{
- msFreeCharArray(atimerange, numranges);
+ msFreeCharArray(atimerange, numranges);
+ msFreeCharArray(atimeextents, numextents);
return MS_TRUE;
}
}
More information about the mapserver-commits
mailing list