Commit bc66e318 by Paul Warren

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
parent 5340a3b9
...@@ -839,6 +839,8 @@ int main(int argc, char **argv) { ...@@ -839,6 +839,8 @@ int main(int argc, char **argv) {
} }
pthread_cancel(thread); pthread_cancel(thread);
pthread_join(thread, NULL);
pcap_close(pd);
ui_finish(); ui_finish();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment