From c2edd31eae73c9a4bf7b62e41a12fd5c3bba2ce0 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 6 Jan 2014 11:52:25 -0500 Subject: _alpm_resolvedeps: free targ inside loop Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/deps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 777f1b90..c7dbe1e4 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -833,8 +833,9 @@ int _alpm_resolvedeps(alpm_handle_t *handle, alpm_list_t *localpkgs, } ret = -1; } + alpm_list_free(targ); + targ = NULL; } - alpm_list_free(targ); alpm_list_free(deps); if(ret != 0) { -- cgit v1.2.3-24-g4f1b