Hi,

On 09/08/2022 09:22, Lev Stipakov wrote:
From: Lev Stipakov <l...@openvpn.net>

Signed-off-by: Lev Stipakov <l...@openvpn.net>

This gc thing is indeed unused and can go.

Acked-by: Antonio Quartulli <a...@unstable.cc>

---
  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;
  }

--
Antonio Quartulli


_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to