Fix memory leaks in 64-bits ODBC driver
authorHonglei Zhang <honglei.zhang@nokia.com>
Thu, 26 Apr 2012 10:17:40 +0000 (13:17 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 26 Apr 2012 15:52:12 +0000 (17:52 +0200)
commit1509316a37fb2d365230d020d1dfc251c830fd56
tree087b5aeb5b78703c6ecdf953c8e347efbe26c9d2
parentf3721d77067d4d0f81971a4bfb1bb135bf146d8a
Fix memory leaks in 64-bits ODBC driver

On 64-bits Windows system, integers and longs are still 4 bytes values.
Several functions that were previously defined with SQLINTEGER and
SQLUINTEGER parameters have been changed where appropiate to use new
SQLLEN and SQLULEN typedefs. SQLGetStmtAttr() is one of these functions.
This fix replaces SQLINTEGER with SQLULEN in appropriate functions to avoid
memory leaks.

Task-number: QTBUG-25256
Change-Id: I744927f42b8578ece60815df360e3b337ebf452a
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
src/sql/drivers/odbc/qsql_odbc.cpp