From 36a29b6553e17bee14e6ff11dc271a6f51d7c62e Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Fri, 8 Apr 2005 16:29:55 +0000 Subject: fixed a small memory leak --- lib/libalpm/remove.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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); -- cgit v1.2.3-70-g09d2