diff options
Diffstat (limited to 'ui/cli/tap-camelsrt.c')
-rw-r--r-- | ui/cli/tap-camelsrt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-camelsrt.c b/ui/cli/tap-camelsrt.c index 6277d357d8..7e64bf6449 100644 --- a/ui/cli/tap-camelsrt.c +++ b/ui/cli/tap-camelsrt.c @@ -210,7 +210,7 @@ static void camelsrt_draw(void *phs) static void camelsrt_init(const char *opt_arg, void *userdata _U_) { struct camelsrt_t *p_camelsrt; - GString *error_string; + gchar *error_string; p_camelsrt = g_new(struct camelsrt_t, 1); if (!strncmp(opt_arg, "camel,srt,", 9)) { @@ -234,8 +234,8 @@ static void camelsrt_init(const char *opt_arg, void *userdata _U_) g_free(p_camelsrt); fprintf(stderr, "tshark: Couldn't register camel,srt tap: %s\n", - error_string->str); - g_string_free(error_string, TRUE); + error_string); + wmem_free(NULL, error_string); exit(1); } |