Step 6: Finish

Before exiting, a Client-Library application must:

  1. Deallocate all command structures for each connection.

  2. Close and deallocate all open connections.

  3. Exit Client-Library.

  4. Deallocate all context structures.

As noted in “Exiting Client-Library”, step 2 can be included with step 3.