summaryrefslogtreecommitdiffstats
path: root/src/pacman/callback.c
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-12-08 09:58:49 +0100
committerDan McGee <dan@archlinux.org>2007-12-09 04:56:40 +0100
commitb6acb30aae5504736fd23f97402389baabbddb1b (patch)
treec81bf2ca06179b1b02679e4e461b05c01a7dddfc /src/pacman/callback.c
parent4437033d2a822d41820c67ab98d95db97daa7fd8 (diff)
downloadpacman-b6acb30aae5504736fd23f97402389baabbddb1b.tar.gz
pacman-b6acb30aae5504736fd23f97402389baabbddb1b.tar.xz
src/pacman/: use the FREELIST macro when possible.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/callback.c')
-rw-r--r--src/pacman/callback.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 3389ed85..05aec140 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -420,9 +420,7 @@ void cb_trans_progress(pmtransprog_t event, const char *pkgname, int percent,
printf("%s", (char *)i->data);
}
fflush(stdout);
- alpm_list_free_inner(output, free);
- alpm_list_free(output);
- output = NULL;
+ FREELIST(output);
} else {
on_progress = 1;
}