diff options
Diffstat (limited to 'lib/libalpm/backup.c')
-rw-r--r-- | lib/libalpm/backup.c | 7 |
1 files changed, 4 insertions, 3 deletions
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) |