MODLANG-161
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16844 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ec90b19af5
commit
f91b3310b3
|
@ -464,6 +464,11 @@ static JSBool odbc_disconnect(JSContext * cx, JSObject * obj, uintN argc, jsval
|
|||
goto done;
|
||||
}
|
||||
|
||||
if (odbc_obj->stmt) {
|
||||
SQLFreeHandle(SQL_HANDLE_STMT, odbc_obj->stmt);
|
||||
odbc_obj->stmt = NULL;
|
||||
}
|
||||
|
||||
switch_odbc_handle_disconnect(odbc_obj->handle);
|
||||
|
||||
done:
|
||||
|
|
Loading…
Reference in New Issue