git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix file descriptor leakages
[sliver-openvswitch.git]
/
lib
/
tunalloc.c
diff --git
a/lib/tunalloc.c
b/lib/tunalloc.c
index
1f083e5
..
4cb2f8e
100644
(file)
--- a/
lib/tunalloc.c
+++ b/
lib/tunalloc.c
@@
-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;
}