summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 185878aa..05959ca8 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -896,6 +896,8 @@ static int download_files(alpm_handle_t *handle, alpm_list_t **deltas)
if(ret != -1) {
break;
}
+ free(payload->fileurl);
+ payload->unlink_on_fail = 0;
}
if(ret == -1) {
errors++;