Added proper SQL engine termination

Since the SQL engine is initialized in _SQLAllocEnv, the engine should be also terminated in SQLFreeEnv.
This commit is contained in:
William Rogers
2015-05-24 17:38:50 -05:00
parent 82e3436494
commit d0472d96ba

View File

@@ -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;