Fix bug #3019: Fix potential memory leaks
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 31 Oct 2008 00:30:23 +0000 (00:30 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 31 Oct 2008 00:30:23 +0000 (00:30 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26635 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/follow_udp.c

index 2a9525f3a807ad4ea2cdfd5401f0844fe63b385e..6186ad6de5aceeb7596fed54f597b12570d911ca 100644 (file)
@@ -120,6 +120,7 @@ follow_udp_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;
                }
 
@@ -155,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);
                return;
        }