SQLHandles are not freed in odbc_dbstep_query. Replace all matches of this code
if (stmth) SQLFreeHandle(SQL_HANDLE_STMT, stmth);
with
if (stmth) { SQLFreeHandle(SQL_HANDLE_STMT, stmth); stmth = NULL; // *!* }
Log in to post a comment.