aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tshark.c b/tshark.c
index a0fcb43ba4..a152c2b191 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2226,8 +2226,6 @@ main(int argc, char *argv[])
#endif
}
- g_free(cf_name);
-
if (cfile.provider.frames != NULL) {
free_frame_data_sequence(cfile.provider.frames);
cfile.provider.frames = NULL;
@@ -2245,6 +2243,7 @@ main(int argc, char *argv[])
output_fields = NULL;
clean_exit:
+ g_free(cf_name);
destroy_print_stream(print_stream);
#ifdef HAVE_LIBPCAP
capture_opts_cleanup(&global_capture_opts);