From a2686149ce873d223472ef3cce971e44bceefc00 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 14 Dec 2018 09:48:36 -0500 Subject: [PATCH] destroy if on destruct --- llarp/ev_kqueue.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llarp/ev_kqueue.hpp b/llarp/ev_kqueue.hpp index a599b30d7..49bd0f715 100644 --- a/llarp/ev_kqueue.hpp +++ b/llarp/ev_kqueue.hpp @@ -298,6 +298,8 @@ namespace llarp ~tun() { + if(tunif) + tuntap_destroy(tunif); } };