]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
tun.c: remove unused gc_arena from init_tun()
authorLev Stipakov <lev@openvpn.net>
Tue, 9 Aug 2022 07:22:20 +0000 (10:22 +0300)
committerGert Doering <gert@greenie.muc.de>
Tue, 9 Aug 2022 09:19:05 +0000 (11:19 +0200)
Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Antonio Quartulli <a@unstable.cc>
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 <gert@greenie.muc.de>
src/openvpn/tun.c

index 54f7d72c0a5645c9d1f9829ec1a8a8c0f3eeab88..f3152a528d1b88b11dcb4e2a6774a686bc6e7f35 100644 (file)
@@ -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;
 }