From: Lev Stipakov Date: Tue, 9 Aug 2022 07:22:20 +0000 (+0300) Subject: tun.c: remove unused gc_arena from init_tun() X-Git-Tag: v2.6_beta1~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0585a4bf1a5ba9cf2051a7d65ac0628bf7164299;p=thirdparty%2Fopenvpn.git tun.c: remove unused gc_arena from init_tun() Signed-off-by: Lev Stipakov Acked-by: Antonio Quartulli Message-Id: <20220809072220.255-1-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24851.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 54f7d72c0..f3152a528 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -745,7 +745,6 @@ init_tun(const char *dev, /* --dev option */ struct env_set *es, openvpn_net_ctx_t *ctx) { - struct gc_arena gc = gc_new(); struct tuntap *tt; ALLOC_OBJ(tt, struct tuntap); @@ -878,7 +877,6 @@ init_tun(const char *dev, /* --dev option */ do_ifconfig_setenv(tt, es); } - gc_free(&gc); return tt; }