diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-05-30 02:37:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-05-30 02:37:36 +0000 |
commit | 07263e1a178611db739f339677b61a715fed68ae (patch) | |
tree | 4cb4d3cd2393971f8f7ec7b63e919cbf7b951453 | |
parent | 3ff150d6d69e8e0c9104db75bcfd536be9689f57 (diff) | |
download | wireshark-07263e1a178611db739f339677b61a715fed68ae.tar.gz wireshark-07263e1a178611db739f339677b61a715fed68ae.tar.bz2 wireshark-07263e1a178611db739f339677b61a715fed68ae.zip |
Free up the err_info string returned by wtap_read().
svn path=/trunk/; revision=25399
-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: |