summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;
}
}