Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-07-16 19:05:33 -0400
committerAllan McRae <allan@archlinux.org>2015-08-08 10:41:14 +1000
commit48f4efd9a18966509bd599684e77d3ad49d5b082 (patch)
treedce7c2e8ecf0d9ba28fbd4f7c463561344eadc52 /src
parentccd3a3eb9fad7b4c311a6bfb57b69a7a1a13c46a (diff)
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.c2
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;
}
}