diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2015-10-25 12:39:27 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-10-27 05:22:30 +0100 |
commit | 0c5dbdbfeca8a26d015230a8edd6d7c4c91d386a (patch) | |
tree | 6d4721bd0446586a6e8d7528edb3709ba8f2a054 /lib/libalpm/delta.c | |
parent | 4c5bf09eec4835f8dfd300215f16289d106266d5 (diff) | |
download | pacman-0c5dbdbfeca8a26d015230a8edd6d7c4c91d386a.tar.gz pacman-0c5dbdbfeca8a26d015230a8edd6d7c4c91d386a.tar.xz |
Alpm, check for NULL in free-functions
Also, use FREE() instead of free() in _alpm_backup_free()
to set the pointers to NULL.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/delta.c')
-rw-r--r-- | lib/libalpm/delta.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/delta.c b/lib/libalpm/delta.c index a43269d0..5ea20692 100644 --- a/lib/libalpm/delta.c +++ b/lib/libalpm/delta.c @@ -335,6 +335,7 @@ error: void _alpm_delta_free(alpm_delta_t *delta) { + ASSERT(delta != NULL, return); FREE(delta->delta); FREE(delta->delta_md5); FREE(delta->from); |