diff options
Diffstat (limited to 'ui/cli/tap-comparestat.c')
-rw-r--r-- | ui/cli/tap-comparestat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-comparestat.c b/ui/cli/tap-comparestat.c index 286310103a..e11b1a132d 100644 --- a/ui/cli/tap-comparestat.c +++ b/ui/cli/tap-comparestat.c @@ -530,7 +530,7 @@ comparestat_init(const char *opt_arg, void *userdata _U_) { comparestat_t *cs; const char *filter = NULL; - GString *error_string; + gchar *error_string; gint start, stop, ttl, order, pos = 0; gdouble variance; @@ -581,8 +581,8 @@ comparestat_init(const char *opt_arg, void *userdata _U_) g_hash_table_destroy(cs->packet_set); g_free(cs); - fprintf(stderr, "tshark: Couldn't register compare tap: %s\n", error_string->str); - g_string_free(error_string, TRUE); + fprintf(stderr, "tshark: Couldn't register compare tap: %s\n", error_string); + wmem_free(NULL, error_string); exit(1); } } |