diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-27 03:13:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-27 03:13:03 +0000 |
commit | 59ef61f6da2a6646d47bba2f708188ec76910b48 (patch) | |
tree | eb980268e7fc84b093604beb6b006a772278500d /file.c | |
parent | c9b9dd690bac14b7402283e178d4c3b00f200d41 (diff) | |
download | wireshark-59ef61f6da2a6646d47bba2f708188ec76910b48.tar.gz |
Don't free the frame_data_sequence unless we have one.
svn path=/trunk/; revision=36882
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -392,8 +392,10 @@ cf_reset_state(capture_file *cf) dfilter_free(cf->rfcode); cf->rfcode = NULL; - free_frame_data_sequence(cf->frames); - cf->frames = NULL; + if (cf->frames != NULL) { + free_frame_data_sequence(cf->frames); + cf->frames = NULL; + } cf_unselect_packet(cf); /* nothing to select */ cf->first_displayed = 0; cf->last_displayed = 0; |