mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
_alpm_recursedeps: free memory on error
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
32413213cb
commit
be4198b34e
@ -614,6 +614,8 @@ int _alpm_recursedeps(alpm_db_t *db, alpm_list_t **targs, int include_explicit)
|
||||
deppkg->name);
|
||||
/* add it to the target list */
|
||||
if(_alpm_pkg_dup(deppkg, ©)) {
|
||||
/* we return memory on "non-fatal" error in _alpm_pkg_dup */
|
||||
_alpm_pkg_free(copy);
|
||||
return -1;
|
||||
}
|
||||
*targs = alpm_list_add(*targs, copy);
|
||||
|
Loading…
Reference in New Issue
Block a user