]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix memory leak
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 25 Sep 2019 06:51:06 +0000 (08:51 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 25 Sep 2019 06:51:06 +0000 (08:51 +0200)
commitfc341a97917b7f808ea9f72b7cab9feb3b7e4024
tree75b4efcfc132fd0dde8d8d21fef7dd6667d7f678
parent16296beaa5ff0b51e1b9e88848206dcea5cd2a32
zebra: fix memory leak

the if_lookup_by_name_per_ns keeps a lock on the node where the
searched ifp is stored. Then this node can not be freed even if
the ifp is removed from the node. Just add the missing unlock
(as for the if_lookup_by_index_per_ns lookup function)

Fixes: b8af3fbbafc8 ("zebra: fix detection of interface renames")
Signed-off-by: Thibaut Collet <thibaut.collet@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/interface.c