git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6de8e4b
)
netdev-bsd: Fix fd leak on error path.
author
Ben Pfaff
<blp@nicira.com>
Thu, 25 Jul 2013 21:41:12 +0000
(14:41 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 8 Aug 2013 06:40:30 +0000
(23:40 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
CC: Ed Maste <emaste@freebsd.org>
lib/netdev-bsd.c
patch
|
blob
|
history
diff --git
a/lib/netdev-bsd.c
b/lib/netdev-bsd.c
index
903659f
..
65e1d25
100644
(file)
--- a/
lib/netdev-bsd.c
+++ b/
lib/netdev-bsd.c
@@
-370,6
+370,7
@@
netdev_bsd_create_tap(const struct netdev_class *class, const char *name,
if (ioctl(netdev->tap_fd, TAPGIFNAME, &ifr) == -1) {
/* XXX Need to destroy the device? */
error = errno;
+ close(netdev->tap_fd);
goto error_unref_notifier;
}