From 334c79edd83377a09c138800c0a2fefaf9c7981f Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 10 Nov 2016 07:18:24 -0500 Subject: testing --- src/fnet/veth.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fnet') diff --git a/src/fnet/veth.c b/src/fnet/veth.c index d06bc9256..546fafcec 100644 --- a/src/fnet/veth.c +++ b/src/fnet/veth.c @@ -111,6 +111,8 @@ int net_create_veth(const char *dev, const char *nsdev, unsigned pid) { if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) exit(2); + rtnl_close(&rth); + return 0; } @@ -173,6 +175,8 @@ int net_create_macvlan(const char *dev, const char *parent, unsigned pid) { if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) exit(2); + rtnl_close(&rth); + return 0; } @@ -209,6 +213,8 @@ int net_move_interface(const char *dev, unsigned pid) { if (rtnl_talk(&rth, &req.n, 0, 0, NULL) < 0) exit(2); + rtnl_close(&rth); + return 0; } -- cgit v1.2.3-54-g00ecf