diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-07-09 01:56:27 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-07-09 01:56:27 +0000 |
commit | 45e9efc6a915f8c5b7874911c8836c9b7fdda7f5 (patch) | |
tree | 980adfbed6d1bac14a195b620b72da7c909378e9 /ui/gtk/proto_hier_stats_dlg.c | |
parent | 1ae38887b67ecf14e4c36ca9817d2941b3b73f7b (diff) |
From Evan Huus:
Fix leaks
- don't g_strdup a string just to use it in a g_strdup_printf
- clean up properly in error cases in lua bindings
- misc. other missing g_free() calls
- one missing fclose() in the new 80211_utils
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7454
svn path=/trunk/; revision=43617
Diffstat (limited to 'ui/gtk/proto_hier_stats_dlg.c')
-rw-r--r-- | ui/gtk/proto_hier_stats_dlg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk/proto_hier_stats_dlg.c b/ui/gtk/proto_hier_stats_dlg.c index ea70c98365..1982823eb1 100644 --- a/ui/gtk/proto_hier_stats_dlg.c +++ b/ui/gtk/proto_hier_stats_dlg.c @@ -104,6 +104,7 @@ proto_hier_select_filter_cb(GtkWidget *widget _U_, gpointer callback_data _U_, g str = g_strdup_printf("%s and %s", strtmp, filter); } else { simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Could not acquire information to build a filter!\nTry expanding or choosing another item."); + g_free(strtmp); return; } |