aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>2009-09-26 06:41:20 +0000
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>2009-09-26 06:41:20 +0000
commit172343d1bb96ec94380c9c4d83b883fd173a7eda (patch)
treeeb32d17ec4f5174fcce56e9ae71c92e555eb4767 /tshark.c
parent2826ab79e35562a8c8004b03c2fcfc1f61ab88b7 (diff)
Free capture filename on shutdown
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30165 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 87e0b06396..3cef9e486c 100644
--- a/tshark.c
+++ b/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);