mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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>
This commit is contained in:
parent
0bf66b097f
commit
17e9c9d9ff
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user