diff options
Diffstat (limited to 'ui/gtk/follow_tcp.c')
-rw-r--r-- | ui/gtk/follow_tcp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/gtk/follow_tcp.c b/ui/gtk/follow_tcp.c index 22565036ad..a7f501c8c9 100644 --- a/ui/gtk/follow_tcp.c +++ b/ui/gtk/follow_tcp.c @@ -257,8 +257,8 @@ follow_tcp_stream_cb(GtkWidget * w _U_, gpointer data _U_) follow_info->is_ipv6 = stats.is_ipv6; - port0 = ep_tcp_port_to_display(stats.port[0]); - port1 = ep_tcp_port_to_display(stats.port[1]); + port0 = (char*)tcp_port_to_display(NULL, stats.port[0]); + port1 = (char*)tcp_port_to_display(NULL, stats.port[1]); /* Host 0 --> Host 1 */ if ((sc.src_port == stats.port[0]) && @@ -304,6 +304,8 @@ follow_tcp_stream_cb(GtkWidget * w _U_, gpointer data _U_) /* Free the filter string, as we're done with it. */ g_free(follow_filter); + wmem_free(NULL, port0); + wmem_free(NULL, port1); g_free(both_directions_string); g_free(server_to_client_string); g_free(client_to_server_string); |