diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-01-25 10:16:35 +0100 |
---|---|---|
committer | Dario Lombardo <lomato@gmail.com> | 2017-02-02 22:04:14 +0000 |
commit | 93a5c83f0a6e609ec4ba3e55872f9924d59ba38a (patch) | |
tree | 82850c6530ee1af7784ff0795ea134855758202c /capture_opts.c | |
parent | 844cf1ac9063553b08444c0d56b96ddf09fcc558 (diff) |
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 <peter@lekensteyn.nl>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/capture_opts.c b/capture_opts.c index d382448d0a..93cea2ab77 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -121,6 +121,12 @@ capture_opts_init(capture_options *capture_opts) capture_opts->capture_child = FALSE; } +void +capture_opts_cleanup(capture_options *capture_opts) +{ + g_array_free(capture_opts->ifaces, TRUE); + g_array_free(capture_opts->all_ifaces, TRUE); +} /* log content of capture_opts */ void |