fix file descriptor leakages
[sliver-openvswitch.git] / lib / tunalloc.c
index 1f083e5..4cb2f8e 100644 (file)
@@ -97,5 +97,8 @@ int tun_alloc(int iftype, char *if_name)
     }
 
     remotefd = receive_vif_fd(control_fd, if_name);
+
+    close(control_fd);
+
     return remotefd;
 }