diff options
author | Anatol Pomozov <anatol.pomozov@gmail.com> | 2020-07-13 18:35:21 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-07-14 15:41:45 +0200 |
commit | 1fd95939dbee071f4d7fb30e19c5b3cb22969113 (patch) | |
tree | ec7a37477cfe39e3bee462b069a0c2a5984a49a1 /lib | |
parent | a8bdc2e10ad6c942f3f1dbbbb77c126578a41bd3 (diff) | |
download | pacman-1fd95939dbee071f4d7fb30e19c5b3cb22969113.tar.gz pacman-1fd95939dbee071f4d7fb30e19c5b3cb22969113.tar.xz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/dload.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 1785dd6a..343f5c78 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -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; } |