Free some recently added strings when we are done with them.
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Sep 2007 05:42:02 +0000 (05:42 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Sep 2007 05:42:02 +0000 (05:42 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22878 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/follow_ssl.c
gtk/follow_tcp.c

index 6f36049110287c38e200e11b335e24490a0e839a..a682a628d3b9961b9a006e7e2b1fc15716ec3fd4 100644 (file)
@@ -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
index fa689087d8eae5e22e3bf984f1b825a35b533941..86364cdaaf3f7e3e8f0265089f215ccb652f7be4 100644 (file)
@@ -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;
 }