forked from osmocom/wireshark
Free capture filename on shutdown
svn path=/trunk/; revision=30165
This commit is contained in:
parent
f4db31c8d8
commit
29c7430fb6
3
tshark.c
3
tshark.c
|
@ -1560,7 +1560,6 @@ main(int argc, char *argv[])
|
|||
epan_cleanup();
|
||||
exit(2);
|
||||
}
|
||||
cf_name[0] = '\0';
|
||||
} else {
|
||||
/* No capture file specified, so we're supposed to do a live capture
|
||||
(or get a list of link-layer types for a live capture device);
|
||||
|
@ -1629,6 +1628,8 @@ main(int argc, char *argv[])
|
|||
#endif
|
||||
}
|
||||
|
||||
g_free(cf_name);
|
||||
|
||||
#if GLIB_CHECK_VERSION(2,10,0)
|
||||
if (cfile.plist_start != NULL)
|
||||
g_slice_free_chain(frame_data, cfile.plist_start, next);
|
||||
|
|
Loading…
Reference in New Issue