summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-01-23 20:25:44 +0100
committerDan McGee <dan@archlinux.org>2008-01-24 02:52:16 +0100
commit6b8f404a33b14ccb89f3adedf438f08b330a177a (patch)
treed51789d35e2a9e6a9c95ff4af04060ab8e76469d
parent8ca6501ee1e3041f4fb186a33a9faf76f973efa2 (diff)
downloadpacman-6b8f404a33b14ccb89f3adedf438f08b330a177a.tar.gz
pacman-6b8f404a33b14ccb89f3adedf438f08b330a177a.tar.xz
small memleak fix in sync.c.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
-rw-r--r--lib/libalpm/sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index fbe5780d..da7a18fb 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -608,7 +608,8 @@ int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sync
goto cleanup;
}
FREELIST(asked);
- FREELIST(deps);
+ alpm_list_free_inner(deps, (alpm_list_fn_free)_alpm_conflict_free);
+ alpm_list_free(deps);
}
EVENT(trans, PM_TRANS_EVT_INTERCONFLICTS_DONE, NULL, NULL);
}