diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-08-07 16:14:44 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-08-07 16:14:44 +0000 |
commit | 56d05bfd4b6f8da5ba225e6470a79bd73b0bd322 (patch) | |
tree | 8e0db73a22e028c4ea571795f216e7d98007cb51 /file.c | |
parent | c617a6a64b4afb03ccdb47903cdbf6e9f0160839 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. */ |