From a7da2a47c3f71f52ad1214b4ae78e716ee488a5a Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Thu, 6 Feb 2014 20:49:07 -0500 Subject: _alpm_sync_prepare: fix unresolvable packages leak If the user opted not to remove the unresolvable packages from the transaction, the list was neither free'd nor saved to the transaction to be free'd in trans_release. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/sync.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index fb133248..c6c50a46 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -460,6 +460,7 @@ int _alpm_sync_prepare(alpm_handle_t *handle, alpm_list_t **data) /* pm_errno was set by resolvedeps, callback may have overwrote it */ handle->pm_errno = ALPM_ERR_UNSATISFIED_DEPS; alpm_list_free(resolved); + alpm_list_free(unresolvable); ret = -1; goto cleanup; } -- cgit v1.2.3-54-g00ecf