aboutsummaryrefslogtreecommitdiffstats
path: root/epan/geoip_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/geoip_db.c')
-rw-r--r--epan/geoip_db.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/geoip_db.c b/epan/geoip_db.c
index d4de2ccb99..65a728dac2 100644
--- a/epan/geoip_db.c
+++ b/epan/geoip_db.c
@@ -165,13 +165,9 @@ static void geoip_dat_cleanup(void) {
* databases as they weren't created by GeoIP_new()
* or GeoIP_open() */
gi = g_array_index(geoip_dat_arr, GeoIP *, i);
- if (gi) {
- g_free(gi);
- }
+ g_free(gi);
gi = g_array_index(geoip_dat_arr, GeoIP *, i+1);
- if (gi) {
- g_free(gi);
- }
+ g_free(gi);
/* finally, free the array itself */
g_array_free(geoip_dat_arr, TRUE);
geoip_dat_arr = NULL;