From 60b6cde637338657e72312aef1ff1d04314df745 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Mon, 20 Jul 2009 14:52:16 +0200 Subject: Fix 2 minor memleaks Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- lib/libalpm/sync.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/sync.c') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 85186bbf..ffcddf98 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -352,6 +352,7 @@ int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sync /* Else, [resolved] now additionally contains [pkg] and all of its dependencies not already on the list */ } + alpm_list_free(preferred); /* If there were unresolvable top-level packages, prompt the user to see if they'd like to ignore them rather than failing the sync */ -- cgit v1.2.3-54-g00ecf