index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2015-10-25 12:39:27 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-10-27 14:22:30 +1000 |
commit | 0c5dbdbfeca8a26d015230a8edd6d7c4c91d386a (patch) | |
tree | 6d4721bd0446586a6e8d7528edb3709ba8f2a054 /lib/libalpm/backup.c | |
parent | 4c5bf09eec4835f8dfd300215f16289d106266d5 (diff) |
-rw-r--r-- | lib/libalpm/backup.c | 7 |
diff --git a/lib/libalpm/backup.c b/lib/libalpm/backup.c index 5ccec036..3d1d6de7 100644 --- a/lib/libalpm/backup.c +++ b/lib/libalpm/backup.c @@ -76,9 +76,10 @@ alpm_backup_t *_alpm_needbackup(const char *file, alpm_pkg_t *pkg) void _alpm_backup_free(alpm_backup_t *backup) { - free(backup->name); - free(backup->hash); - free(backup); + ASSERT(backup != NULL, return); + FREE(backup->name); + FREE(backup->hash); + FREE(backup); } alpm_backup_t *_alpm_backup_dup(const alpm_backup_t *backup) |