lwtunnel: fix memory leak
authorJiri Benc <jbenc@redhat.com>
Tue, 18 Aug 2015 16:41:13 +0000 (18:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Aug 2015 02:11:19 +0000 (19:11 -0700)
commitdf383e6240ef222703648072dafd2a1ae21b0d2a
tree6be9fbd2a2836665df49413b97597b528da9c91e
parentc938a003448063382e0575aee2d381d4cd7aec34
lwtunnel: fix memory leak

The built lwtunnel_state struct has to be freed after comparison.

Fixes: 571e722676fe3 ("ipv4: support for fib route lwtunnel encap attributes")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/lwtunnel.h
net/ipv4/fib_semantics.c