aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/follow_ssl.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-31 00:23:40 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-31 00:23:40 +0000
commit2a836e9ef2dc81fdfa41a0151cc204dff5609c79 (patch)
tree8c30a4790c792c68e01a43fec0126bfd48a404aa /gtk/follow_ssl.c
parent3b9879735d80afeb9bb92312325a5795347c0cc6 (diff)
Fix bug #3018: Fix potential memory leaks
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26634 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/follow_ssl.c')
-rw-r--r--gtk/follow_ssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/follow_ssl.c b/gtk/follow_ssl.c
index b682352805..4e8399ad6e 100644
--- a/gtk/follow_ssl.c
+++ b/gtk/follow_ssl.c
@@ -173,6 +173,7 @@ follow_ssl_stream_cb(GtkWidget * w, gpointer data _U_)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Error creating filter for this stream.\n"
"A network layer header is needed");
+ g_free(follow_info);
return;
}
@@ -208,6 +209,7 @@ follow_ssl_stream_cb(GtkWidget * w, gpointer data _U_)
{
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Can't register ssl tap: %s\n",msg->str);
+ g_free(follow_info);
return;
}
gtk_entry_set_text(GTK_ENTRY(filter_te), follow_filter);