diff options
author | Dan McGee <dan@archlinux.org> | 2007-11-15 15:05:10 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-15 15:05:10 +0100 |
commit | 4ce13e2398a8ec3f960fbf544a17507ffc17eca1 (patch) | |
tree | 717fb600c6658135d8636192efe746bf9012db68 | |
parent | 2f55733be35e7ec4188ddab17a92ed67faa7210d (diff) | |
download | pacman-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.c | 2 |
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); } } |