diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-07 22:58:34 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-10-08 07:47:21 +0200 |
commit | 12d5e57dcac22c288ef23075b82e3e3e87929912 (patch) | |
tree | 40320ef42a368ab5735d99309483ca52f9d895b7 | |
parent | 4d94541a7b88b76d856e30dba7f8a3de48260eda (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>
-rw-r--r-- | connectivity/source/drivers/odbc/OResultSet.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx index 51c2e88ae2cf..7a74762a30c0 100644 --- a/connectivity/source/drivers/odbc/OResultSet.cxx +++ b/connectivity/source/drivers/odbc/OResultSet.cxx @@ -164,6 +164,7 @@ OResultSet::OResultSet(SQLHANDLE _pStatementHandle ,OStatement_Base* pStmt) : OResultSet::~OResultSet() { + setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR, nullptr); } void OResultSet::construct() |