Do not free payload fields in the middle of this structure use

At the end of payload use it calls _alpm_dload_payload_reset()
that will free() these and other fields anyway.

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Anatol Pomozov 2020-07-13 09:35:21 -07:00 committed by Allan McRae
parent a8bdc2e10a
commit 1fd95939db

View file

@ -698,10 +698,6 @@ static int curl_add_payload(alpm_handle_t *handle, CURLM *curlm,
return 0;
cleanup:
FREE(payload->fileurl);
FREE(payload->tempfile_name);
FREE(payload->destfile_name);
FREE(payload->content_disp_name);
curl_easy_cleanup(curl);
return ret;
}