if (hdr->rcode > 0 && req->numresp < req->numserv)
return -EINVAL;
- if (req->timeout > 0)
- g_source_remove(req->timeout);
-
request_list = g_slist_remove(request_list, req);
if (protocol == IPPROTO_UDP) {
close(sk);
}
- g_free(req->resp);
- g_free(req);
+ destroy_request_data(req);
return err;
}