What if item is NULL here? Looks possible, because you set the data field to NULL and call uv_cancel after, so if the request couldn't be canceled you'd reach here.