DB2 10.5 for Linux, UNIX, and Windows

SQLFreeEnv function (CLI) - Free environment handle

In ODBC 3.0, SQLFreeEnv() has been deprecated and replaced with SQLFreeHandle(). Although this version of CLI continues to support SQLFreeEnv(), use SQLFreeHandle() in your CLI programs so that they conform to the latest standards.

Migrating to the new function

The statement:
   SQLFreeEnv(henv);
for example, would be rewritten using the new function as:
   SQLFreeHandle(SQL_HANDLE_ENV, henv);