addr_resolv: remove leak.
authorDario Lombardo <lomato@gmail.com>
Sun, 5 Feb 2017 21:28:26 +0000 (22:28 +0100)
committerDario Lombardo <lomato@gmail.com>
Wed, 8 Feb 2017 15:36:51 +0000 (15:36 +0000)
Change-Id: If4676b2982efae593084dbe951d8e0bb97189917
Reviewed-on: https://code.wireshark.org/review/19966
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
epan/addr_resolv.c
epan/prefs.c

index 35df8fc9c8e535a9e2bda7ff3c832dd22f07629f..f8a5ca01768bc381d3f35fb1a48784301e82035f 100644 (file)
@@ -663,6 +663,8 @@ static void
 service_name_lookup_cleanup(void)
 {
     serv_port_hashtable = NULL;
+    g_free(g_services_path);
+    g_services_path = NULL;
 }
 
 /* Fill in an IP4 structure with info from subnets file or just with the
index 1dcb8b1f1baae28555a4d74535458a756b08860f..ac2f25bc0811fa13f2e5eb43d0b9f2c36b017e3a 100644 (file)
@@ -407,6 +407,8 @@ prefs_cleanup(void)
     uat_cleanup();
 
     g_free(prefs.saved_at_version);
+    g_free(gpf_path);
+    gpf_path = NULL;
 }
 
 /*