Kaydet (Commit) 1c3c1508 authored tarafından Terrence Enger's avatar Terrence Enger Kaydeden (comit) Lionel Elie Mamane

avoid freeing the NULL handle

Change-Id: Id3f22bacfbf5e582656cc8ac38d60b781a25b4c3
Signed-off-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
üst 5a3eb922
...@@ -541,6 +541,9 @@ SQLHANDLE OConnection::createStatementHandle() ...@@ -541,6 +541,9 @@ SQLHANDLE OConnection::createStatementHandle()
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void OConnection::freeStatementHandle(SQLHANDLE& _pHandle) void OConnection::freeStatementHandle(SQLHANDLE& _pHandle)
{ {
if( SQL_NULL_HANDLE == _pHandle )
return;
::std::map< SQLHANDLE,OConnection*>::iterator aFind = m_aConnections.find(_pHandle); ::std::map< SQLHANDLE,OConnection*>::iterator aFind = m_aConnections.find(_pHandle);
N3SQLFreeStmt(_pHandle,SQL_RESET_PARAMS); N3SQLFreeStmt(_pHandle,SQL_RESET_PARAMS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment