diff options
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2203,6 +2203,7 @@ clean_exit: col_cleanup(&cfile.cinfo); free_filter_lists(); wtap_cleanup(); + cf_close(&cfile); return exit_status; } @@ -4078,6 +4079,12 @@ write_finale(void) } } +void +cf_close(capture_file *cf) +{ + g_free(cf->filename); +} + cf_status_t cf_open(capture_file *cf, const char *fname, unsigned int type, gboolean is_tempfile, int *err) { |