|
The mi_error_desc_destroy() function frees an error descriptor that mi_error_desc_copy() allocated.
The mi_error_desc_destroy() function is a destructor function for the error descriptor. It frees the error descriptor that err_desc references. The mi_error_desc_copy() function must previously have allocated the err_desc error descriptor. This function can fail if either of the following error conditions exists:
Use the mi_error_desc_is_copy() function to determine how the err_desc structure was allocated.
MI_OK | indicates that the function was successful. |
MI_ERROR | indicates that the function was not successful. |
See the descriptions of the following functions: mi_errmsg(), mi_error_desc_copy(), mi_error_desc_is_copy(), mi_error_level(), mi_error_sql_state(), and mi_error_sqlcode().
For a general discussion of how to copy error descriptors, see Creating a Copy of an Error Descriptor.