From de33c21ae8737ffdb99af549bcf259ca4e71e53f Mon Sep 17 00:00:00 2001 From: Stephen Fisher Date: Sun, 16 Sep 2007 05:42:02 +0000 Subject: [PATCH] Free some recently added strings when we are done with them. svn path=/trunk/; revision=22878 --- gtk/follow_ssl.c | 4 ++++ gtk/follow_tcp.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gtk/follow_ssl.c b/gtk/follow_ssl.c index 6f36049110..a682a628d3 100644 --- a/gtk/follow_ssl.c +++ b/gtk/follow_ssl.c @@ -263,6 +263,10 @@ follow_ssl_stream_cb(GtkWidget * w, gpointer data _U_) follow_stream("Follow SSL Stream", follow_info, both_directions_string, server_to_client_string, client_to_server_string); + + g_free(both_directions_string); + g_free(server_to_client_string); + g_free(client_to_server_string); } #define FLT_BUF_SIZE 1024 diff --git a/gtk/follow_tcp.c b/gtk/follow_tcp.c index fa689087d8..86364cdaaf 100644 --- a/gtk/follow_tcp.c +++ b/gtk/follow_tcp.c @@ -298,6 +298,10 @@ follow_tcp_stream_cb(GtkWidget * w, gpointer data _U_) follow_stream("Follow TCP Stream", follow_info, both_directions_string, server_to_client_string, client_to_server_string); + g_free(both_directions_string); + g_free(server_to_client_string); + g_free(client_to_server_string); + data_out_file = NULL; }