forked from osmocom/wireshark
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:
parent
c617a6a64b
commit
56d05bfd4b
5
file.c
5
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. */
|
||||
|
|
Loading…
Reference in New Issue