aboutsummaryrefslogtreecommitdiffstats
path: root/ui/cli/tap-wspstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/cli/tap-wspstat.c')
-rw-r--r--ui/cli/tap-wspstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-wspstat.c b/ui/cli/tap-wspstat.c
index b2a0ba46a8..f65280bbbe 100644
--- a/ui/cli/tap-wspstat.c
+++ b/ui/cli/tap-wspstat.c
@@ -216,7 +216,7 @@ wspstat_init(const char *opt_arg, void *userdata _U_)
wspstat_t *sp;
const char *filter = NULL;
guint32 i;
- GString *error_string;
+ gchar *error_string;
wsp_status_code_t *sc;
const value_string *wsp_vals_status_p;
@@ -272,8 +272,8 @@ wspstat_init(const char *opt_arg, void *userdata _U_)
g_hash_table_foreach( sp->hash, (GHFunc) wsp_free_hash_table, NULL ) ;
g_hash_table_destroy( sp->hash );
fprintf(stderr, "tshark: Couldn't register wsp,stat tap: %s\n",
- error_string->str);
- g_string_free(error_string, TRUE);
+ error_string);
+ wmem_free(NULL, error_string);
exit(1);
}
}