summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-15 15:05:10 +0100
committerDan McGee <dan@archlinux.org>2007-11-15 15:05:10 +0100
commit4ce13e2398a8ec3f960fbf544a17507ffc17eca1 (patch)
tree717fb600c6658135d8636192efe746bf9012db68
parent2f55733be35e7ec4188ddab17a92ed67faa7210d (diff)
downloadpacman-4ce13e2398a8ec3f960fbf544a17507ffc17eca1.tar.gz
pacman-4ce13e2398a8ec3f960fbf544a17507ffc17eca1.tar.xz
Fix a would-be memleak with the new compute requiredby stuff
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/deps.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}