summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-26 20:23:03 -0400
committerDan McGee <dan@archlinux.org>2007-04-27 20:40:29 -0400
commit69bc2e62fe2b94bb1189959e4ed396ffbf5088e1 (patch)
tree2a7b3720c44a2bb25b96e2a9192e18f0131896ee /lib/libalpm/db.c
parent3cf8a333d04cd8b55edfe63bd8f4dd322a88a4d0 (diff)
downloadpacman-69bc2e62fe2b94bb1189959e4ed396ffbf5088e1.tar.xz
Remove FREESERVER macro and correctly type _alpm_server_free
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 183f71d3..eef27b7e 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -83,7 +83,10 @@ void _alpm_db_free(pmdb_t *db)
{
ALPM_LOG_FUNC;
- _FREELIST(db->servers, _alpm_server_free);
+ alpm_list_t *tmp;
+ for(tmp = db->servers; tmp; tmp = alpm_list_next(tmp)) {
+ _alpm_server_free(tmp->data);
+ }
FREE(db->path);
FREE(db);