From a3491224df3209563b68cc45b9b2d8ab747d208a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2007 21:08:34 -0400 Subject: Remove FREEPKG macro and correctly type _alpm_pkg_free Signed-off-by: Dan McGee --- lib/libalpm/trans.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/libalpm/trans.c') diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 54267bfc..e0162524 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -86,8 +86,13 @@ void _alpm_trans_free(pmtrans_t *trans) } FREELIST(trans->packages); } else { - FREELISTPKGS(trans->packages); + alpm_list_t *tmp; + for(tmp = trans->packages; tmp; tmp = alpm_list_next(tmp)) { + _alpm_pkg_free(tmp->data); + tmp->data = NULL; + } } + trans->packages = NULL; FREELIST(trans->skip_add); FREELIST(trans->skip_remove); -- cgit v1.2.3-2-g168b