From 93a5c83f0a6e609ec4ba3e55872f9924d59ba38a Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Wed, 25 Jan 2017 10:16:35 +0100 Subject: capture_opts: free memory on exit to avoid leak. This required a restyle of the way the different apps exit. Change-Id: Iedf728488954cc415b620ff0284d2e60f38f87d2 Reviewed-on: https://code.wireshark.org/review/19780 Reviewed-by: Peter Wu Reviewed-by: Dario Lombardo --- dumpcap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dumpcap.c') diff --git a/dumpcap.c b/dumpcap.c index 6f07b63225..56af89e9a6 100644 --- a/dumpcap.c +++ b/dumpcap.c @@ -1132,6 +1132,7 @@ exit_main(int status) #endif /* _WIN32 */ + capture_opts_cleanup(&global_capture_opts); exit(status); } -- cgit v1.2.1