aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-15 18:04:50 +0000
committerEvan Huus <eapache@gmail.com>2013-03-15 18:04:50 +0000
commit32799db42c65f2aa0d9b30212a2bde20b9d96d41 (patch)
tree57eb7c019916f4fc52ce819fe0ada718ba5beed1 /rawshark.c
parent574d1ceec3c1b9fae918888d18146ac11ca992e0 (diff)
Fix the leaking of packet comments, i.e. the rest of
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7530 The frame_data_cleanup function was ambiguous; it was being used for two different purposes, and did neither of them quite properly. Split it instead into frame_data_reset and frame_data_destroy, and call the correct one depending on why we were originally calling frame_data_cleanup. svn path=/trunk/; revision=48324
Diffstat (limited to 'rawshark.c')
-rw-r--r--rawshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rawshark.c b/rawshark.c
index 79ba938736..b022e007da 100644
--- a/rawshark.c
+++ b/rawshark.c
@@ -1128,7 +1128,7 @@ process_packet(capture_file *cf, gint64 offset, struct wtap_pkthdr *whdr,
}
epan_dissect_cleanup(&edt);
- frame_data_cleanup(&fdata);
+ frame_data_destroy(&fdata);
return passed;
}