1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

_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:
Andrew Gregory 2014-01-06 11:52:25 -05:00 committed by Allan McRae
parent fac9ac6c40
commit c2edd31eae

View File

@ -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) {