summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-04-04 21:40:29 -0400
committerDan McGee <dan@archlinux.org>2012-04-07 10:13:38 -0500
commit391769ff8914b1aa94fd8daa87da0d2bfc2cc328 (patch)
tree2d23c823e76ea0a676b408382b60f44062be3fe3 /lib/libalpm
parent969dcddbdf9d5dbd91aa414cdd193f3fb26b644b (diff)
downloadpacman-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>
Diffstat (limited to 'lib/libalpm')
-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) {