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
This commit is contained in:
Jeff Morriss 2013-08-07 16:14:44 +00:00
parent c617a6a64b
commit 56d05bfd4b
1 changed files with 3 additions and 2 deletions

5
file.c
View File

@ -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. */