From cf669eda9c6b8e0b1d38bcf32fa08c0637a9e030 Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Tue, 21 Jul 2009 15:50:08 +0200 Subject: Fix a minor memleak Signed-off-by: Nagy Gabor Signed-off-by: Dan McGee --- lib/libalpm/remove.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index e370909a..aa6a5cc7 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -277,6 +277,7 @@ static void unlink_file(pmpkg_t *info, char *filename, pmtrans_t *trans) if(pkghash) { if(trans->flags & PM_TRANS_FLAG_NOSAVE) { _alpm_log(PM_LOG_DEBUG, "transaction is set to NOSAVE, not backing up '%s'\n", file); + FREE(pkghash); } else { char *filehash = alpm_compute_md5sum(file); int cmp = strcmp(filehash,pkghash); -- cgit v1.2.3-24-g4f1b