diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-07-17 01:05:33 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-08-08 02:41:14 +0200 |
commit | 48f4efd9a18966509bd599684e77d3ad49d5b082 (patch) | |
tree | dce7c2e8ecf0d9ba28fbd4f7c463561344eadc52 /src | |
parent | ccd3a3eb9fad7b4c311a6bfb57b69a7a1a13c46a (diff) | |
download | pacman-48f4efd9a18966509bd599684e77d3ad49d5b082.tar.gz pacman-48f4efd9a18966509bd599684e77d3ad49d5b082.tar.xz |
copy assumeinstalled options
All other option setters copy their input.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index e1997435..738b0261 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -801,9 +801,9 @@ static int setup_libalpm(void) pm_printf(ALPM_LOG_DEBUG, "parsed assume installed: %s %s\n", dep->name, dep->version); ret = alpm_option_add_assumeinstalled(handle, dep); + alpm_dep_free(dep); if(ret) { pm_printf(ALPM_LOG_ERROR, _("Failed to pass %s entry to libalpm"), "assume-installed"); - alpm_dep_free(dep); return ret; } } |