From: Lev Stipakov Date: Tue, 9 Aug 2022 10:22:20 +0300 Message-Id: <20220809072220.255-1-lstipakov@...277...> Subject: [Openvpn-devel] [PATCH] tun.c: remove unused gc_arena from init_tun() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net Cc: Lev Stipakov From: Lev Stipakov Signed-off-by: Lev Stipakov --- src/openvpn/tun.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 54f7d72c..f3152a52 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; } -- 2.23.0.windows.1