From 391769ff8914b1aa94fd8daa87da0d2bfc2cc328 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 4 Apr 2012 21:40:29 -0400 Subject: sync: fix crash on failed downloads Dan was right. This should have been FREE(), not free(). Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- lib/libalpm/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2