summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-04-05 03:40:29 +0200
committerDan McGee <dan@archlinux.org>2012-04-07 17:13:38 +0200
commit391769ff8914b1aa94fd8daa87da0d2bfc2cc328 (patch)
tree2d23c823e76ea0a676b408382b60f44062be3fe3
parent969dcddbdf9d5dbd91aa414cdd193f3fb26b644b (diff)
downloadpacman-391769ff8914b1aa94fd8daa87da0d2bfc2cc328.tar.gz
pacman-391769ff8914b1aa94fd8daa87da0d2bfc2cc328.tar.xz
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>
-rw-r--r--lib/libalpm/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 05959ca8..e660d8e7 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -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) {