summaryrefslogtreecommitdiff
path: root/ui/cli/tap-protohierstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/cli/tap-protohierstat.c')
-rw-r--r--ui/cli/tap-protohierstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-protohierstat.c b/ui/cli/tap-protohierstat.c
index 24d8365c46..6fe4096a69 100644
--- a/ui/cli/tap-protohierstat.c
+++ b/ui/cli/tap-protohierstat.c
@@ -170,7 +170,7 @@ protohierstat_init(const char *opt_arg, void *userdata _U_)
phs_t *rs;
int pos = 0;
const char *filter = NULL;
- gchar *error_string;
+ GString *error_string;
if (strcmp("io,phs", opt_arg) == 0) {
/* No arguments */
@@ -198,8 +198,8 @@ protohierstat_init(const char *opt_arg, void *userdata _U_)
g_free(rs);
fprintf(stderr, "tshark: Couldn't register io,phs tap: %s\n",
- error_string);
- wmem_free(NULL, error_string);
+ error_string->str);
+ g_string_free(error_string, TRUE);
exit(1);
}
}