diff options
author | Evan Huus <eapache@gmail.com> | 2013-01-23 02:30:15 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-01-23 02:30:15 +0000 |
commit | ec7d4f0cfd42209ef35293a0e4f00d339b7a7745 (patch) | |
tree | 6d3af98f28681ad633130bad7ec9154e8523c289 | |
parent | 681a3ad5a2d80a1b76e336256fb90f9caf2b89df (diff) |
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
-rw-r--r-- | tshark.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ |