Index: funcs/func_odbc.c =================================================================== --- funcs/func_odbc.c (revision 197576) +++ funcs/func_odbc.c (working copy) @@ -321,6 +321,7 @@ if (obj && !transactional) { ast_odbc_release_obj(obj); + obj = NULL; } }