summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-05-30 02:37:36 +0000
committerGuy Harris <guy@alum.mit.edu>2008-05-30 02:37:36 +0000
commit07263e1a178611db739f339677b61a715fed68ae (patch)
tree4cb4d3cd2393971f8f7ec7b63e919cbf7b951453 /tshark.c
parent3ff150d6d69e8e0c9104db75bcfd536be9689f57 (diff)
downloadwireshark-07263e1a178611db739f339677b61a715fed68ae.tar.gz
Free up the err_info string returned by wtap_read().
svn path=/trunk/; revision=25399
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index b68b8a78bf..77c6c3d30f 100644
--- a/tshark.c
+++ b/tshark.c
@@ -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: