summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/deps.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/deps.c')
-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) {