diff options
Diffstat (limited to 'tfshark.c')
-rw-r--r-- | tfshark.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -867,7 +867,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 */ @@ -995,7 +997,9 @@ main(int argc, char *argv[]) cmdarg_err("%s", err_msg); g_free(err_msg); epan_cleanup(); +#ifdef HAVE_EXTCAP extcap_cleanup(); +#endif return 2; } } @@ -1006,7 +1010,9 @@ main(int argc, char *argv[]) cmdarg_err("%s", err_msg); g_free(err_msg); epan_cleanup(); +#ifdef HAVE_EXTCAP extcap_cleanup(); +#endif return 2; } } @@ -1052,7 +1058,9 @@ main(int argc, char *argv[]) open_routine reader to use, then the following needs to change. */ if (cf_open(&cfile, cf_name, WTAP_TYPE_AUTO, FALSE, &err) != CF_OK) { epan_cleanup(); +#ifdef HAVE_EXTCAP extcap_cleanup(); +#endif return 2; } @@ -1091,7 +1099,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; |