fix: coverity regressions reported on 2021-10-01 (#1869)
leaks introduced by 3fd5c81a
This commit is contained in:
parent
392c375b17
commit
c87d22d53f
|
@ -195,7 +195,7 @@ static struct tau_scrape_request* tau_scrape_request_new(
|
|||
req->transaction_id = transaction_id;
|
||||
req->callback = callback;
|
||||
req->user_data = user_data;
|
||||
req->response.url = tr_strdup(in->url);
|
||||
req->response.url = in->url;
|
||||
req->response.row_count = in->info_hash_count;
|
||||
req->payload.assign(payload_begin, payload_end);
|
||||
|
||||
|
@ -229,7 +229,7 @@ static void tau_scrape_request_fail(struct tau_scrape_request* request, bool did
|
|||
{
|
||||
request->response.did_connect = did_connect;
|
||||
request->response.did_timeout = did_timeout;
|
||||
request->response.errmsg = tr_strdup(errmsg);
|
||||
request->response.errmsg = errmsg;
|
||||
tau_scrape_request_finished(request);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue