1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-02-28 17:31:52 -05:00

fixed a memory leak with md5 sums handling

This commit is contained in:
Aurelien Foret 2005-05-04 21:22:22 +00:00
parent de5e40bcd8
commit df5c0392fa

View File

@ -164,8 +164,10 @@ int remove_commit(pmtrans_t *trans, pmdb_t *db)
for(lp = pm_list_last(info->files); lp; lp = lp->prev) {
int nb = 0;
char *file = lp->data;
if(_alpm_needbackup(lp->data, info->backup)) {
char *md5 =_alpm_needbackup(lp->data, info->backup);
if(md5) {
nb = 1;
free(md5);
}
if(!nb && trans->type == PM_TRANS_TYPE_UPGRADE) {
/* check noupgrade */