summaryrefslogtreecommitdiffstats
path: root/src/pacman/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r--src/pacman/sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 9cf781a9..df102af2 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -717,8 +717,7 @@ static int sync_trans(alpm_list_t *targets, int sync_only)
/* Step 4: release transaction resources */
cleanup:
if(data) {
- alpm_list_free_inner(data, free);
- alpm_list_free(data);
+ FREELIST(data);
}
if(alpm_trans_release() == -1) {
fprintf(stderr, _("error: failed to release transaction (%s)\n"),