1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -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:
Nagy Gabor 2007-11-16 22:48:29 +01:00 committed by Dan McGee
parent 3d10786394
commit 04b7d2ad14
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ int pacman_deptest(alpm_list_t *targets)
break;
}
}
alpm_list_free(provides);
}
if(!found) {

View File

@ -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;
}
}