utils: handle error case for xcap auth status to free allocated structs