diff options
Diffstat (limited to 'ui/cli/tap-stats_tree.c')
-rw-r--r-- | ui/cli/tap-stats_tree.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/cli/tap-stats_tree.c b/ui/cli/tap-stats_tree.c index fedf22da3b..f30a5dc23b 100644 --- a/ui/cli/tap-stats_tree.c +++ b/ui/cli/tap-stats_tree.c @@ -64,7 +64,7 @@ static void init_stats_tree(const char *opt_arg, void *userdata _U_) { char *abbr = stats_tree_get_abbr(opt_arg); - gchar *error_string; + GString *error_string; stats_tree_cfg *cfg = NULL; stats_tree *st = NULL; @@ -99,8 +99,7 @@ init_stats_tree(const char *opt_arg, void *userdata _U_) draw_stats_tree); if (error_string) { - report_failure("stats_tree for: %s failed to attach to the tap: %s", cfg->name, error_string); - wmem_free(NULL, error_string); + report_failure("stats_tree for: %s failed to attach to the tap: %s", cfg->name, error_string->str); return; } |