[mapserver-commits] r9925 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sat Mar 6 17:35:59 EST 2010


Author: tamas
Date: 2010-03-06 17:35:59 -0500 (Sat, 06 Mar 2010)
New Revision: 9925

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapmssql2008.c
Log:
Fixed msMSSQL2008CloseConnection() to free the statement handle properly (#3244)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2010-03-06 22:35:16 UTC (rev 9924)
+++ trunk/mapserver/HISTORY.TXT	2010-03-06 22:35:59 UTC (rev 9925)
@@ -14,6 +14,8 @@
 Current Version (SVN trunk):
 ----------------------------
 
+- Fixed msMSSQL2008CloseConnection() to free the statement handle properly (#3244)
+
 - Fixed the query handling with the MSSQL2008 driver (#3058)
 
 - Fixed swig zoomRectangle() method: the maxy in the rect object have to be < miny value (#3286)

Modified: trunk/mapserver/mapmssql2008.c
===================================================================
--- trunk/mapserver/mapmssql2008.c	2010-03-06 22:35:16 UTC (rev 9924)
+++ trunk/mapserver/mapmssql2008.c	2010-03-06 22:35:59 UTC (rev 9925)
@@ -200,7 +200,7 @@
 
 	if (conn->hstmt)
 	{
-		SQLFreeHandle(SQL_HANDLE_DBC, conn->hstmt);
+		SQLFreeHandle(SQL_HANDLE_STMT, conn->hstmt);    
 	}
 	if (conn->hdbc)
 	{
@@ -209,7 +209,7 @@
 	}
 	if (conn->henv)	
 	{
-		SQLFreeHandle(SQL_HANDLE_ENV, conn->henv);
+		SQLFreeHandle(SQL_HANDLE_ENV, conn->henv);   
 	}
 
 	free(conn);



More information about the mapserver-commits mailing list