1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-10 13:28:12 -05:00

Fix a minor memleak

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Nagy Gabor 2009-07-21 15:50:08 +02:00 committed by Dan McGee
parent 1c4596b4be
commit cf669eda9c

View File

@ -277,6 +277,7 @@ static void unlink_file(pmpkg_t *info, char *filename, pmtrans_t *trans)
if(pkghash) { if(pkghash) {
if(trans->flags & PM_TRANS_FLAG_NOSAVE) { if(trans->flags & PM_TRANS_FLAG_NOSAVE) {
_alpm_log(PM_LOG_DEBUG, "transaction is set to NOSAVE, not backing up '%s'\n", file); _alpm_log(PM_LOG_DEBUG, "transaction is set to NOSAVE, not backing up '%s'\n", file);
FREE(pkghash);
} else { } else {
char *filehash = alpm_compute_md5sum(file); char *filehash = alpm_compute_md5sum(file);
int cmp = strcmp(filehash,pkghash); int cmp = strcmp(filehash,pkghash);