diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index 53550c4..27012f7 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -3322,12 +3322,9 @@
 #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len))
 #endif
 
-#define max(a, b) ((a) > (b) ? (a) : (b))
-
 void
 get_default_gateway(struct route_gateway_info *rgi, in_addr_t dest, openvpn_net_ctx_t *ctx)
 {
-    struct gc_arena gc = gc_new();
     struct rtmsg m_rtmsg;
     int sockfd = -1;
     int rtm_addrs;
@@ -3529,7 +3526,6 @@
     {
         close(sockfd);
     }
-    gc_free(&gc);
 }
 
 /* BSD implementation using routing socket (as does IPv4)
@@ -3698,8 +3694,6 @@
     }
 }
 
-#undef max
-
 #elif defined(TARGET_HAIKU)
 
 void
