]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix fd going out of scope leaks the handle 7140/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 22 Sep 2020 12:17:15 +0000 (14:17 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 23 Sep 2020 12:03:12 +0000 (14:03 +0200)
commit922afe81858f2fb274dae531bd80d983c566ea26
tree9a04d96bda9ec0fd0982a2782fa205fe72f289fa
parent2383a00ef324ce495c03844eb8b6805cc8455208
zebra: fix fd going out of scope leaks the handle

the file descriptor is closed if it has been locally created.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_netns_id.c