aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-30 02:37:36 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-30 02:37:36 +0000
commit7137266ddc1cf0a29e617c9438b492965928c2ae (patch)
tree4cb4d3cd2393971f8f7ec7b63e919cbf7b951453 /tshark.c
parent00366dec1c4dbc64373728cd8cbc095105760f15 (diff)
Free up the err_info string returned by wtap_read().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25399 f5534014-38df-0310-8fa8-9805f1628bb7
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: