diff options
Diffstat (limited to 'ui/cli/tap-protocolinfo.c')
-rw-r--r-- | ui/cli/tap-protocolinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cli/tap-protocolinfo.c b/ui/cli/tap-protocolinfo.c index 23581bc127..8be62703ee 100644 --- a/ui/cli/tap-protocolinfo.c +++ b/ui/cli/tap-protocolinfo.c @@ -87,7 +87,7 @@ protocolinfo_init(const char *opt_arg, void *userdata _U_) const char *field = NULL; const char *filter = NULL; header_field_info *hfi; - GString *error_string; + gchar *error_string; if (!strncmp("proto,colinfo,", opt_arg, 14)) { filter = opt_arg+14; @@ -120,8 +120,8 @@ protocolinfo_init(const char *opt_arg, void *userdata _U_) if (error_string) { /* error, we failed to attach to the tap. complain and clean up */ fprintf(stderr, "tshark: Couldn't register proto,colinfo tap: %s\n", - error_string->str); - g_string_free(error_string, TRUE); + error_string); + wmem_free(NULL, error_string); g_free(rs->filter); g_free(rs); |