diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-03-12 14:18:04 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-03-12 14:18:04 +0000 |
commit | 3394b453aff33812913c78ae6eacdbfe6763ced1 (patch) | |
tree | aeb02a148ee0435b000f1085313a63398adb2c89 /tshark.c | |
parent | d772d2acd26477b4cef7903e499c84dbaec02985 (diff) |
Free idb_inf and shb_hdr when done.
svn path=/trunk/; revision=41501
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2826,6 +2826,8 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type, break; } wtap_dump_close(pdh, &err); + g_free(idb_inf); + g_free(shb_hdr); exit(2); } } @@ -2876,6 +2878,8 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type, break; } wtap_dump_close(pdh, &err); + g_free(idb_inf); + g_free(shb_hdr); exit(2); } } @@ -2982,6 +2986,8 @@ out: cf->wth = NULL; g_free(save_file_string); + g_free(idb_inf); + g_free(shb_hdr); return err; } |