diff options
-rw-r--r-- | tshark.c | 2 | ||||
-rw-r--r-- | wireshark-qt.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -2189,7 +2189,9 @@ main(int argc, char *argv[]) output_fields = NULL; clean_exit: +#ifdef HAVE_LIBPCAP capture_opts_cleanup(&global_capture_opts); +#endif return exit_status; } diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index 6f52e4bccc..827171a309 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -943,7 +943,9 @@ int main(int argc, char *qt_argv[]) #endif /* _WIN32 */ clean_exit: +#ifdef HAVE_LIBPCAP capture_opts_cleanup(&global_capture_opts); +#endif return ret_val; } |