Add free_cb_data function to resolv_query() call