mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ODBC: Fixed leaking because of missing SQLDisconnect
git-svn-id: svn://ultimatepp.org/upp/trunk@10993 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
23d1b10a38
commit
2222ff696c
1 changed files with 2 additions and 1 deletions
|
|
@ -117,8 +117,9 @@ void ODBCSession::Close()
|
|||
SessionClose();
|
||||
if(hdbc != SQL_NULL_HANDLE) {
|
||||
FlushConnections();
|
||||
SQLFreeHandle(SQL_HANDLE_DBC, hdbc);
|
||||
SQLDisconnect(hdbc);
|
||||
SQLFreeHandle(SQL_HANDLE_STMT, hstmt);
|
||||
SQLFreeHandle(SQL_HANDLE_DBC, hdbc);
|
||||
hdbc = SQL_NULL_HANDLE;
|
||||
hstmt = SQL_NULL_HANDLE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue