summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-01-06 11:52:25 -0500
committerAllan McRae <allan@archlinux.org>2014-01-30 14:12:06 +1000
commitc2edd31eae73c9a4bf7b62e41a12fd5c3bba2ce0 (patch)
tree0dd28ead7c72c5108e9f485728ec0d1f8134517c /lib/libalpm
parentfac9ac6c4011ff643b7335c7381f6219b07bba80 (diff)
downloadpacman-c2edd31eae73c9a4bf7b62e41a12fd5c3bba2ce0.tar.xz
_alpm_resolvedeps: free targ inside loop
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/deps.c3
1 files changed, 2 insertions, 1 deletions
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) {