diff --git a/gtk/follow_tcp.c b/gtk/follow_tcp.c index 23a6e8ddb5..ef22411ecf 100644 --- a/gtk/follow_tcp.c +++ b/gtk/follow_tcp.c @@ -201,6 +201,7 @@ follow_tcp_stream_cb(GtkWidget * w, gpointer data _U_) "The packets in the capture file for that stream have no data."); ws_close(tmp_fd); ws_unlink(follow_info->data_out_filename); + g_free(follow_info->filter_out_filter); g_free(follow_info); return; } @@ -231,6 +232,7 @@ follow_tcp_stream_cb(GtkWidget * w, gpointer data _U_) } ws_close(tmp_fd); ws_unlink(follow_info->data_out_filename); + g_free(follow_info->filter_out_filter); g_free(follow_info); return; } diff --git a/gtk/follow_udp.c b/gtk/follow_udp.c index 6186ad6de5..7f7f117447 100644 --- a/gtk/follow_udp.c +++ b/gtk/follow_udp.c @@ -156,6 +156,7 @@ follow_udp_stream_cb(GtkWidget *w, gpointer data _U_) simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Can't register udp_follow tap: %s\n", msg->str); + g_free(follow_info->filter_out_filter); g_free(follow_info); return; }