From 21ace771c35763d328d8caa05503aa5c629bb911 Mon Sep 17 00:00:00 2001 From: cantor Date: Fri, 18 Jan 2008 16:28:49 +0000 Subject: [PATCH] Free statement after direct exec. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2697 cb58f699-b61c-0410-a6fe-9272a202ed29 --- odbc-store/odbc-store.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 "; -- 2.1.4