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:
parent
1c4596b4be
commit
cf669eda9c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user