_alpm_resolvedeps: free targ inside loop
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
fac9ac6c40
commit
c2edd31eae
1 changed files with 2 additions and 1 deletions
|
@ -833,8 +833,9 @@ int _alpm_resolvedeps(alpm_handle_t *handle, alpm_list_t *localpkgs,
|
||||||
}
|
}
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
alpm_list_free(targ);
|
alpm_list_free(targ);
|
||||||
|
targ = NULL;
|
||||||
|
}
|
||||||
alpm_list_free(deps);
|
alpm_list_free(deps);
|
||||||
|
|
||||||
if(ret != 0) {
|
if(ret != 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue