diff --git a/net/l2tpv3.c b/net/l2tpv3.c index 528d95b6416765b838b80cc7d2e307100c38c368..65db5ef279c93b47d23b13d6a1d7bd880568b785 100644 --- a/net/l2tpv3.c +++ b/net/l2tpv3.c @@ -660,7 +660,6 @@ int net_init_l2tpv3(const NetClientOptions *opts, if (fd == -1) { fd = -errno; error_report("l2tpv3_open : socket creation failed, errno = %d", -fd); - freeaddrinfo(result); goto outerr; } if (bind(fd, (struct sockaddr *) result->ai_addr, result->ai_addrlen)) {