diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-01-06 17:52:24 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-01-30 05:02:31 +0100 |
commit | fac9ac6c4011ff643b7335c7381f6219b07bba80 (patch) | |
tree | faba525f6d3dcc40237928127b31d3e7c850fae5 /COPYING | |
parent | 4d68092e2fd8c8a3b6da39e509ad48db0fc9ed7a (diff) | |
download | pacman-fac9ac6c4011ff643b7335c7381f6219b07bba80.tar.gz pacman-fac9ac6c4011ff643b7335c7381f6219b07bba80.tar.xz |
sync_prepare: manually set pm_errno
_alpm_resolvedeps resets pm_errno to 0 by calling alpm_checkdeps.
Whenever the last call succeeded, pm_errno was not properly set,
preventing pacman from properly handling the error and leaking
additional memory. We know pm_errno should be ALPM_ERR_UNSATISFIED_DEPS
if resolvedeps has failed, so just set it manually.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions