Index: funcs/func_odbc.c =================================================================== --- funcs/func_odbc.c (revision 258776) +++ funcs/func_odbc.c (working copy) @@ -321,6 +321,7 @@ if (obj && !transactional) { ast_odbc_release_obj(obj); + obj = NULL; } } @@ -339,6 +340,8 @@ SQLRowCount(stmt, &rows); break; } + ast_odbc_release_obj(obj); + obj = NULL; } } else if (stmt) { status = "SUCCESS"; @@ -460,6 +463,8 @@ if (stmt) { break; } + ast_odbc_release_obj(obj); + obj = NULL; } if (!stmt) {