mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
_alpm_sync_prepare: fix unresolvable packages leak
If the user opted not to remove the unresolvable packages from the transaction, the list was neither free'd nor saved to the transaction to be free'd in trans_release. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
0deeb9991c
commit
a7da2a47c3
@ -460,6 +460,7 @@ int _alpm_sync_prepare(alpm_handle_t *handle, alpm_list_t **data)
|
||||
/* pm_errno was set by resolvedeps, callback may have overwrote it */
|
||||
handle->pm_errno = ALPM_ERR_UNSATISFIED_DEPS;
|
||||
alpm_list_free(resolved);
|
||||
alpm_list_free(unresolvable);
|
||||
ret = -1;
|
||||
goto cleanup;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user