diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-07-15 12:36:10 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-07-16 02:12:22 +0200 |
commit | 17e9c9d9ff8b10f4fd82ba17ea968e071a273482 (patch) | |
tree | 2fcf4c8b490f79cb57aae0efd957d4a8e113ee34 /lib | |
parent | 0bf66b097fc8ccb394cb910764d171476e15d124 (diff) | |
download | pacman-17e9c9d9ff8b10f4fd82ba17ea968e071a273482.tar.gz pacman-17e9c9d9ff8b10f4fd82ba17ea968e071a273482.tar.xz |
Fix a wrong FREELIST usage in add.c
The dynamic pmconflict_t must be freed with _alpm_conflict_free.
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/add.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 6cf865ab..b2f68805 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -137,7 +137,8 @@ int _alpm_add_prepare(pmtrans_t *trans, pmdb_t *db, alpm_list_t **data) if(data) { *data = lp; } else { - FREELIST(lp); + alpm_list_free_inner(lp, (alpm_list_fn_free)_alpm_conflict_free); + alpm_list_free(lp); } if(inner) { _alpm_log(PM_LOG_ERROR, _("conflicting packages were found in the target list\n")); |