]> git.proxmox.com Git - mirror_iproute2.git/commit
ip/tunnel: No need to free answer after rtnl_talk() on error
authorSerhey Popovych <serhe.popovych@gmail.com>
Wed, 20 Dec 2017 07:57:10 +0000 (09:57 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 26 Dec 2017 17:07:43 +0000 (09:07 -0800)
commit08ede25fdaa1d338c1b12e297be2246cb8a3897d
tree043d4025153ad98c9bb8b85161e97f05f4781bfa
parent1ed8a5ca87c3dc913b3fa438ac2248edd9140616
ip/tunnel: No need to free answer after rtnl_talk() on error

Since rtnl_talk() never returns with answer buffer allocated
on error we do not need to release it manually. After this
initializing answer with NULL before rtnl_talk() is useless.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
ip/link_gre.c
ip/link_gre6.c
ip/link_ip6tnl.c
ip/link_iptnl.c
ip/link_vti.c
ip/link_vti6.c