diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2009-07-21 15:50:08 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-07-21 21:45:07 -0500 |
commit | cf669eda9c6b8e0b1d38bcf32fa08c0637a9e030 (patch) | |
tree | f959ac76ac70b0c8146d174a733f06957a72cf39 /lib | |
parent | 1c4596b4be196e35c9982c53645d8ab1ada03988 (diff) | |
download | pacman-cf669eda9c6b8e0b1d38bcf32fa08c0637a9e030.tar.xz |
Fix a minor memleak
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/remove.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |