mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-02 00:25:07 -04:00
Two memleak fixes in pacman.
Both memleak was an unfreed alpm_db_whatprovides list. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
This commit is contained in:
parent
3d10786394
commit
04b7d2ad14
@ -70,6 +70,7 @@ int pacman_deptest(alpm_list_t *targets)
|
||||
break;
|
||||
}
|
||||
}
|
||||
alpm_list_free(provides);
|
||||
}
|
||||
|
||||
if(!found) {
|
||||
|
@ -532,6 +532,7 @@ int sync_trans(alpm_list_t *targets, int sync_only)
|
||||
if(prov) {
|
||||
pmpkg_t *pkg = alpm_list_getdata(prov);
|
||||
pname = alpm_pkg_get_name(pkg);
|
||||
alpm_list_free(prov);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user