summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-01-23 02:30:15 +0000
committerEvan Huus <eapache@gmail.com>2013-01-23 02:30:15 +0000
commitec7d4f0cfd42209ef35293a0e4f00d339b7a7745 (patch)
tree6d3af98f28681ad633130bad7ec9154e8523c289 /tshark.c
parent681a3ad5a2d80a1b76e336256fb90f9caf2b89df (diff)
downloadwireshark-ec7d4f0cfd42209ef35293a0e4f00d339b7a7745.tar.gz
Run epan_cleanup after printing the version information in tshark,
as it makes the results of ./tools/valgrind-wireshark.sh -n much more interesting and useful. svn path=/trunk/; revision=47221
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 5890013a93..e1d3688474 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1452,6 +1452,12 @@ main(int argc, char *argv[])
show_version(comp_info_str, runtime_info_str);
g_string_free(comp_info_str, TRUE);
g_string_free(runtime_info_str, TRUE);
+ /* We don't really have to cleanup here, but it's a convenient way to test
+ * start-up and shut-down of the epan library without any UI-specific
+ * cruft getting in the way. Makes the results of running
+ * $ ./tools/valgrind-wireshark -n
+ * much more useful. */
+ epan_cleanup();
return 0;
}
case 'O': /* Only output these protocols */