sync: fix crash on failed downloads

Dan was right. This should have been FREE(), not free().

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dave Reisner 2012-04-04 21:40:29 -04:00 committed by Dan McGee
parent 969dcddbdf
commit 391769ff89
1 changed files with 1 additions and 1 deletions

View File

@ -896,7 +896,7 @@ static int download_files(alpm_handle_t *handle, alpm_list_t **deltas)
if(ret != -1) {
break;
}
free(payload->fileurl);
FREE(payload->fileurl);
payload->unlink_on_fail = 0;
}
if(ret == -1) {