aboutsummaryrefslogtreecommitdiffstats
path: root/ui/traffic_table_ui.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-01-17 20:34:35 -0500
committerMichael Mann <mmann78@netscape.net>2015-01-18 04:14:03 +0000
commit403be722cee0aa78b6c57b7e61c35d2d59780713 (patch)
treed7798c6683f95a6a6e0a8cb952f4b3165293c17c /ui/traffic_table_ui.c
parent86726f404a60003585d6a5f64f908b091bcac099 (diff)
Remove emem from GeoIP
Change-Id: Ifa96dc38a277b86c28f762489251dcc595afae67 Reviewed-on: https://code.wireshark.org/review/6603 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/traffic_table_ui.c')
-rw-r--r--ui/traffic_table_ui.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/traffic_table_ui.c b/ui/traffic_table_ui.c
index 2609ca5fd8..07895aaf97 100644
--- a/ui/traffic_table_ui.c
+++ b/ui/traffic_table_ui.c
@@ -195,7 +195,7 @@ create_endpoint_geoip_map(const GArray *endp_array, gchar **err_str) {
tpl_entry = g_string_new("");
for (i = 0; i < endp_array->len; i++) {
- const char *lat, *lon, *country, *city, *asn;
+ char *lat = NULL, *lon = NULL, *country = NULL, *city = NULL, *asn = NULL;
hostlist_talker_t *endp_item = &g_array_index(endp_array, hostlist_talker_t, i);
if (endp_item->myaddress.type == AT_IPv4) {
@@ -272,8 +272,13 @@ create_endpoint_geoip_map(const GArray *endp_array, gchar **err_str) {
map_endpoint_opener = ",\n{\n";
}
- /* XXX Display an error if we we have no entries */
+ wmem_free(NULL, lat);
+ wmem_free(NULL, lon);
+ wmem_free(NULL, country);
+ wmem_free(NULL, city);
+ wmem_free(NULL, asn);
+ /* XXX Display an error if we we have no entries */
}
while (fgets(tpl_line, MAX_TPL_LINE_LEN, tpl_file) != NULL) {