Skip to content
Prev 1064 / 1559 Next

sqlUpdate causing crash with RODBC

Hi,
This is very strange code. SQLFreeStmt is superseded by SQLFreeHandle in ODBC v3 and 
should not be used simultaneously. They are for the same purpose and may cause 
double free. Furthermore, the code contains SQLAllocHandle but not SQLAllocStmt.
So, there is no justification to use SQLFreeStmt.

You might test with just one
	SQLFreeHandle(SQL_HANDLE_STMT, thisHandle->hStmt);