summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/tds/qsql_tds.cpp
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2013-04-04 01:05:58 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-04 13:13:43 +0200
commitc8c8093561e1e15d1931c88f42dd876a569c2974 (patch)
tree1926d7b55dbfe93cd8edfcd2e0ca99a3bd7734d9 /src/sql/drivers/tds/qsql_tds.cpp
parent0bdc86d9ef7be8e27598d245c6ca8026f08aff12 (diff)
QTDSDriver: fix index out of range
Follow-up to 5544208e2. Change-Id: Iba3ff291622533e8050ddc0494e4488233727ebe Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/sql/drivers/tds/qsql_tds.cpp')
-rw-r--r--src/sql/drivers/tds/qsql_tds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/drivers/tds/qsql_tds.cpp b/src/sql/drivers/tds/qsql_tds.cpp
index 8d5f63c879..69534fe380 100644
--- a/src/sql/drivers/tds/qsql_tds.cpp
+++ b/src/sql/drivers/tds/qsql_tds.cpp
@@ -355,7 +355,7 @@ void QTDSResult::cleanup()
d->clearErrorMsgs();
d->rec.clear();
for (int i = 0; i < d->buffer.size(); ++i)
- free(d->buffer.at(i * 2).data);
+ free(d->buffer.at(i).data);
d->buffer.clear();
// "can" stands for "cancel"... very clever.
dbcanquery(d->dbproc);