Re: [iproute PATCH] ip-route: Fix for memleak in error path

2018-10-22 Thread Stephen Hemminger
On Thu, 18 Oct 2018 14:30:31 +0200 Phil Sutter wrote: > If call to rta_addattr_l() failed, parse_encap_seg6() would leak memory. > Fix this by making sure calls to free() are not skipped. > > Fixes: bd59e5b1517b0 ("ip-route: Fix segfault with many nexthops") > Signed-off-by: Phil Sutter Applie

[iproute PATCH] ip-route: Fix for memleak in error path

2018-10-18 Thread Phil Sutter
If call to rta_addattr_l() failed, parse_encap_seg6() would leak memory. Fix this by making sure calls to free() are not skipped. Fixes: bd59e5b1517b0 ("ip-route: Fix segfault with many nexthops") Signed-off-by: Phil Sutter --- ip/iproute_lwtunnel.c | 16 ++-- 1 file changed, 10 inse