diff options
author | Richard Hughes <richard@hughsie.com> | 2017-11-16 21:02:17 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-11-20 11:56:03 +0100 |
commit | 578b5c0a75bfbddfb7665f142d3c6001ae9e12c5 (patch) | |
tree | 71cf3248c8dbc3b7f80e730fd91fbfdb459dbb57 | |
parent | 1edee856c83d7625027287ec336499f31fe01335 (diff) | |
download | gcab-578b5c0a75bfbddfb7665f142d3c6001ae9e12c5.tar.gz |
trivial: Remove any checked-gfrees
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r-- | libgcab/cabinet.c | 3 | ||||
-rw-r--r-- | libgcab/gcab-folder.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libgcab/cabinet.c b/libgcab/cabinet.c index 56c333d..9361372 100644 --- a/libgcab/cabinet.c +++ b/libgcab/cabinet.c @@ -11,8 +11,7 @@ zalloc (voidpf opaque, uInt items, uInt size) static void zfree (voidpf opaque, voidpf address) { - if (address) - g_free (address); + g_free (address); } static gboolean diff --git a/libgcab/gcab-folder.c b/libgcab/gcab-folder.c index 631113f..db28cf7 100644 --- a/libgcab/gcab-folder.c +++ b/libgcab/gcab-folder.c @@ -442,8 +442,7 @@ gcab_folder_extract (GCabFolder *self, success = TRUE; end: - if (files) - g_slist_free (files); + g_slist_free (files); g_clear_object (&data); g_clear_object (&out); |