From: cantor Date: Fri, 18 Jan 2008 16:28:49 +0000 (+0000) Subject: Free statement after direct exec. X-Git-Tag: 2.4~588 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=21ace771c35763d328d8caa05503aa5c629bb911 Free statement after direct exec. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2697 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/odbc-store/odbc-store.cpp b/odbc-store/odbc-store.cpp index 5a42927..ca14348 100644 --- a/odbc-store/odbc-store.cpp +++ b/odbc-store/odbc-store.cpp @@ -582,6 +582,9 @@ int ODBCStorageService::updateRow(const char *table, const char* context, const return -1; } + SQLFreeHandle(SQL_HANDLE_STMT, stmt); + stmt = getHSTMT(conn); + // Prepare and exectute update statement. q = string("UPDATE ") + table + " SET ";