diff options
Diffstat (limited to 'ui/cli/tap-sipstat.c')
-rw-r--r-- | ui/cli/tap-sipstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-sipstat.c b/ui/cli/tap-sipstat.c index a7936102db..bac6b0f4f5 100644 --- a/ui/cli/tap-sipstat.c +++ b/ui/cli/tap-sipstat.c @@ -394,7 +394,7 @@ sipstat_init(const char *opt_arg, void *userdata _U_) { sipstat_t *sp; const char *filter = NULL; - GString *error_string; + gchar *error_string; if (strncmp (opt_arg, "sip,stat,", 9) == 0) { filter = opt_arg+9; @@ -424,8 +424,8 @@ sipstat_init(const char *opt_arg, void *userdata _U_) g_free(sp->filter); g_free(sp); fprintf (stderr, "tshark: Couldn't register sip,stat tap: %s\n", - error_string->str); - g_string_free(error_string, TRUE); + error_string); + wmem_free(NULL, error_string); exit(1); } |