proper function declaration for free_error_handler(), use the right macros for accessing arguments