summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index f02cb33c72..470da75992 100644
--- a/tshark.c
+++ b/tshark.c
@@ -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)
{