revert part of last patch

This commit is contained in:
Anthony Minessale 2012-02-16 10:40:56 -06:00
parent f24f2b3a1c
commit 90805f6d02
1 changed files with 3 additions and 1 deletions

View File

@ -605,8 +605,10 @@ SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_handle_callback_exec_detailed(c
free(vals);
}
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
stmt = NULL; /* Make sure we don't try to free this handle again */
if (!err_cnt) {
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
return SWITCH_ODBC_SUCCESS;
}