summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
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);