summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-11-20 20:26:39 -0500
committerDave Reisner <dreisner@archlinux.org>2014-11-20 20:26:39 -0500
commitb65a4c4deea3d9b0965bd2421083b98213804768 (patch)
tree157f6fc70c07bd44bb4605eb443570d64942455c
parent015dae3c6f100d30e66ad1234f317650f97eb5a0 (diff)
downloadexpac-b65a4c4deea3d9b0965bd2421083b98213804768.tar.xz
fix leak in local db search path
-rw-r--r--expac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expac.c b/expac.c
index 548e5d1..899881e 100644
--- a/expac.c
+++ b/expac.c
@@ -711,7 +711,7 @@ static alpm_list_t *expac_search_local(expac_t *expac, alpm_list_t *targets) {
alpm_list_t *dblist, *r;
dblist = alpm_list_add(NULL, alpm_get_localdb(expac->alpm));
- r = resolve_targets(alpm_list_add(NULL, alpm_get_localdb(expac->alpm)), targets);
+ r = resolve_targets(dblist, targets);
alpm_list_free(dblist);
return r;