Free up the err_info string returned by wtap_read().

svn path=/trunk/; revision=25399
This commit is contained in:
Guy Harris 2008-05-30 02:37:36 +00:00
parent 3ff150d6d6
commit 07263e1a17
1 changed files with 2 additions and 0 deletions

View File

@ -2258,6 +2258,7 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
case WTAP_ERR_UNSUPPORTED_ENCAP:
cmdarg_err("\"%s\" has a packet with a network type that TShark doesn't support.\n(%s)",
cf->filename, err_info);
g_free(err_info);
break;
case WTAP_ERR_CANT_READ:
@ -2273,6 +2274,7 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
case WTAP_ERR_BAD_RECORD:
cmdarg_err("\"%s\" appears to be damaged or corrupt.\n(%s)",
cf->filename, err_info);
g_free(err_info);
break;
default: