aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-08-07 16:14:44 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-08-07 16:14:44 +0000
commit56d05bfd4b6f8da5ba225e6470a79bd73b0bd322 (patch)
tree8e0db73a22e028c4ea571795f216e7d98007cb51 /file.c
parentc617a6a64b4afb03ccdb47903cdbf6e9f0160839 (diff)
It's not necessary to call epan_free() in cf_open(): cf_close() (which is
called by cf_open()) already calls epan_free(). svn path=/trunk/; revision=51188
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.c b/file.c
index b1fd0f7585..fa98011455 100644
--- a/file.c
+++ b/file.c
@@ -364,8 +364,9 @@ cf_open(capture_file *cf, const char *fname, gboolean is_tempfile, int *err)
the packets, so we know how much we'll ultimately need. */
buffer_init(&cf->buf, 1500);
- /* Create new epan session for dissection. */
- epan_free(cf->epan);
+ /* Create new epan session for dissection.
+ * (The old one was freed in cf_close().)
+ */
cf->epan = ws_epan_new(cf);
/* We're about to start reading the file. */