summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 2e2ec5c76c..a009907357 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1311,7 +1311,9 @@ main(int argc, char *argv[])
* $ ./tools/valgrind-wireshark -n
* much more useful. */
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
return 0;
case 'O': /* Only output these protocols */
/* already processed; just ignore it now */
@@ -1731,7 +1733,9 @@ main(int argc, char *argv[])
cmdarg_err("%s", err_msg);
g_free(err_msg);
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
#ifdef HAVE_PCAP_OPEN_DEAD
{
pcap_t *pc;
@@ -1758,7 +1762,9 @@ main(int argc, char *argv[])
cmdarg_err("%s", err_msg);
g_free(err_msg);
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
#ifdef HAVE_PCAP_OPEN_DEAD
{
pcap_t *pc;
@@ -1870,7 +1876,9 @@ main(int argc, char *argv[])
*/
if (cf_open(&cfile, cf_name, in_file_type, FALSE, &err) != CF_OK) {
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
return 2;
}
@@ -2032,7 +2040,9 @@ main(int argc, char *argv[])
funnel_dump_all_text_windows();
epan_free(cfile.epan);
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
output_fields_free(output_fields);
output_fields = NULL;