Fix a would-be memleak with the new compute requiredby stuff

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-11-15 08:05:10 -06:00
parent 2f55733be3
commit 4ce13e2398
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}