diff options
author | Paul Warren <pdw@ex-parrot.com> | 2017-01-03 21:53:09 +0000 |
---|---|---|
committer | Paul Warren <pdw@ex-parrot.com> | 2017-01-03 21:53:09 +0000 |
commit | bc66e31834419c12770d790694bc9e60eccd11e2 (patch) | |
tree | 4ae836c318b2ea1e1d4834b607dae889b47c300b | |
parent | 5340a3b9af25e3330ca7e234aff159cda19e9ec7 (diff) | |
download | iftop-bc66e31834419c12770d790694bc9e60eccd11e2.zip |
Clean up libpcap on exit - Brian Russell <brussell@brocade.com>
On exit, call pcap_close() so that any resources used internally
by libpcap can be cleaned up.
http://lists.beasts.org/pipermail/iftop-users/2016-September/000455.html
-rw-r--r-- | iftop.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -839,6 +839,8 @@ int main(int argc, char **argv) { } pthread_cancel(thread); + pthread_join(thread, NULL); + pcap_close(pd); ui_finish(); |