diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-30 02:37:36 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-30 02:37:36 +0000 |
commit | 7137266ddc1cf0a29e617c9438b492965928c2ae (patch) | |
tree | 4cb4d3cd2393971f8f7ec7b63e919cbf7b951453 /tshark.c | |
parent | 00366dec1c4dbc64373728cd8cbc095105760f15 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |