Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/remove.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index 515bc538..735cf372 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -87,6 +87,8 @@ int remove_prepare(pmdb_t *db, pmtrans_t *trans, PMList **data)
info = db_scan(db, miss->depend.name, INFRQ_ALL);
if(!pkg_isin(info, trans->packages)) {
trans->packages = pm_list_add(trans->packages, info);
+ } else {
+ FREEPKG(info);
}
}
FREELIST(lp);