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:
parent
a8bdc2e10a
commit
1fd95939db
1 changed files with 0 additions and 4 deletions
|
@ -698,10 +698,6 @@ static int curl_add_payload(alpm_handle_t *handle, CURLM *curlm,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
FREE(payload->fileurl);
|
|
||||||
FREE(payload->tempfile_name);
|
|
||||||
FREE(payload->destfile_name);
|
|
||||||
FREE(payload->content_disp_name);
|
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue