summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-07 12:15:46 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-07 12:15:46 +0000
commitd2b61c0297f264c9725ae6ab0148682e82b15e63 (patch)
tree4d291daddd91f416174881383163fe323fdc0290 /file.c
parent367bcb7abd8a842c4125ecdc45d3015c3206d0c2 (diff)
downloadwireshark-d2b61c0297f264c9725ae6ab0148682e82b15e63.tar.gz
Free frame data slice on file reset
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3813 svn path=/trunk/; revision=29322
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index eb40b8e4bd..be6818465d 100644
--- a/file.c
+++ b/file.c
@@ -337,6 +337,8 @@ cf_reset_state(capture_file *cf)
cf->user_saved = FALSE;
#if GLIB_CHECK_VERSION(2,10,0)
+ if (cf->plist != NULL)
+ g_slice_free_chain(frame_data, cf->plist, next);
#else
/* memory chunks have been deprecated in favor of the slice allocator,
* which has been added in 2.10