From d0472d96ba57fd5c8e0a4c648f8abc750c0119e3 Mon Sep 17 00:00:00 2001 From: William Rogers Date: Sun, 24 May 2015 17:38:50 -0500 Subject: [PATCH] Added proper SQL engine termination Since the SQL engine is initialized in _SQLAllocEnv, the engine should be also terminated in SQLFreeEnv. --- src/odbc/odbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/odbc/odbc.c b/src/odbc/odbc.c index 469603e..8725023 100644 --- a/src/odbc/odbc.c +++ b/src/odbc/odbc.c @@ -1300,6 +1300,7 @@ static SQLRETURN SQL_API _SQLFreeEnv( return SQL_ERROR; } g_ptr_array_free(env->connections, TRUE); + mdb_sql_exit(env->sql); g_free(env); return SQL_SUCCESS;