summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iftop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iftop.c b/iftop.c
index a090dcf..f9875c9 100644
--- a/iftop.c
+++ b/iftop.c
@@ -839,6 +839,8 @@ int main(int argc, char **argv) {
}
pthread_cancel(thread);
+ pthread_join(thread, NULL);
+ pcap_close(pd);
ui_finish();