I offer the attached patch under LGPLv3+/MPL1.1 dual license or future versions of the licenses, It fixes a leak of connection handle in an ODBC database. Without the call to SQLDisconnect90, SQLFreeHandle() fails with code 'HY010'. This is my first attempt a patch. Comments and guidance welcome. Terry.