From dd5e3dcfea077ac0942ccb83acb95ad34176e5d2 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 13 Jul 2012 00:54:53 +0000 Subject: Fix crash in geoip_db_pref_init() when changing to a new profile. (Use g_free() not free() for g_malloc'd memory). svn path=/trunk/; revision=43688 --- epan/geoip_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/geoip_db.c') diff --git a/epan/geoip_db.c b/epan/geoip_db.c index 6e8d3ca103..1bafbc3169 100644 --- a/epan/geoip_db.c +++ b/epan/geoip_db.c @@ -159,11 +159,11 @@ static void geoip_db_post_update_cb(void) { * or GeoIP_open() */ gi = g_array_index(geoip_dat_arr, GeoIP *, i); if (gi) { - free(gi); + g_free(gi); } gi = g_array_index(geoip_dat_arr, GeoIP *, i+1); if (gi) { - free(gi); + g_free(gi); } /* finally, free the array itself */ g_array_free(geoip_dat_arr, TRUE); -- cgit v1.2.3