From 6b8f404a33b14ccb89f3adedf438f08b330a177a Mon Sep 17 00:00:00 2001 From: Chantry Xavier Date: Wed, 23 Jan 2008 20:25:44 +0100 Subject: small memleak fix in sync.c. Signed-off-by: Chantry Xavier --- lib/libalpm/sync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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); } -- cgit v1.2.3