From 4ce13e2398a8ec3f960fbf544a17507ffc17eca1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 15 Nov 2007 08:05:10 -0600 Subject: Fix a would-be memleak with the new compute requiredby stuff Signed-off-by: Dan McGee --- lib/libalpm/deps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 548b643e..e35838ac 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -582,7 +582,7 @@ static int can_remove_package(pmdb_t *db, pmpkg_t *pkg, alpm_list_t *targets, for(i = requiredby; i; i = i->next) { pmpkg_t *reqpkg = _alpm_db_get_pkgfromcache(db, i->data); if(reqpkg && !_alpm_pkg_find(alpm_pkg_get_name(reqpkg), targets)) { - FREE(requiredby); + FREELIST(requiredby); return(0); } } -- cgit v1.2.3-70-g09d2