From: Gert Doering Date: Tue, 24 Nov 2015 13:09:10 +0000 (+0100) Subject: remove unused gc_arena in FreeBSD close_tun() X-Git-Tag: v2.4_alpha1~190 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cef57449b98c38deb35e885bd8958fe09f6a2b02;p=thirdparty%2Fopenvpn.git remove unused gc_arena in FreeBSD close_tun() not used, and a small mem leak on every tunnel close... Signed-off-by: Gert Doering Acked-by: Steffan Karger Message-Id: <1448370550-23897-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/10581 --- diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 8139afc18..c293e1ecd 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -2539,7 +2539,6 @@ close_tun (struct tuntap *tt) } else if (tt) /* close and destroy */ { - struct gc_arena gc = gc_new (); struct argv argv; /* setup command, close tun dev (clears tt->actual_name!), run command