Menu

#3 [ODBC] Memory Leaks on SQLAllocHandle

open
nobody
None
5
2005-09-05
2005-09-05
No

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; // *!*
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.