fix: coverity regressions reported on 2021-10-01 (#1869)

leaks introduced by 3fd5c81a
This commit is contained in:
Charles Kerr 2021-10-01 08:21:05 -05:00 committed by GitHub
parent 392c375b17
commit c87d22d53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}