summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-10-07 22:58:34 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-10-08 19:16:52 +0200
commit01ba3b43c16e2570022f20dbdf958a091a1fef0b (patch)
tree68b69e9f36fccc0ad20d3a8e267d519316d49bba
parent382af3b87fabb1b5d748e6e339c3e60146dd5a6f (diff)
tdf#112947: fix write to free'd memory (odbc)
suggested by Nick Gorham Change-Id: I3579caf5192df6e460dea3a5b3728196d75a65f4 Reviewed-on: https://gerrit.libreoffice.org/43234 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-on: https://gerrit.libreoffice.org/43236 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--connectivity/source/drivers/odbc/OResultSet.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx
index f7e2b978114a..8f1853a7623e 100644
--- a/connectivity/source/drivers/odbc/OResultSet.cxx
+++ b/connectivity/source/drivers/odbc/OResultSet.cxx
@@ -165,6 +165,7 @@ OResultSet::OResultSet(SQLHANDLE _pStatementHandle ,OStatement_Base* pStmt) :
OResultSet::~OResultSet()
{
+ setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR, nullptr);
delete [] m_pRowStatusArray;
delete m_pSkipDeletedSet;
}