Re: [Openvpn-devel] [PATCH] fix memory leak in add_route_ipv6.

2021-07-14 Thread Gert Doering
Hi, thanks for the patch. Well spotted :-) Two things: - I see that the code in add_route() is the same... struct argv argv = argv_new(); ... if (!(r->flags & RT_DEFINED)) { return; } so while at it, please send a fix for both places - if you want, please set you

[Openvpn-devel] [PATCH] fix memory leak in add_route_ipv6.

2021-07-14 Thread davkor
--- src/openvpn/route.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openvpn/route.c b/src/openvpn/route.c index 56fa7717..3b2af8b4 100644 --- a/src/openvpn/route.c +++ b/src/openvpn/route.c @@ -1891,6 +1891,7 @@ add_route_ipv6(struct route_ipv6 *r6, const struct tuntap *tt, if (