Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-08 16:29:55 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-08 16:29:55 +0000
commit36a29b6553e17bee14e6ff11dc271a6f51d7c62e (patch)
treea87335224b19cd9c580e0d9453ba7a11ed03004a /lib
parent3c0ea9451becc1a861bc5dd1c9a574ca08c3fb04 (diff)
fixed a small memory leak
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);