MODLANG-161

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16844 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2010-02-27 20:03:42 +00:00
parent ec90b19af5
commit f91b3310b3
1 changed files with 5 additions and 0 deletions

View File

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