projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c77ea7
)
dpif-linux: Fix file descriptor leak.
author
Tetsuo NAKAGAWA
<nakagawa@mxc.nes.nec.co.jp>
Thu, 25 Mar 2010 14:54:15 +0000
(10:54 -0400)
committer
Jesse Gross
<jesse@nicira.com>
Thu, 25 Mar 2010 14:54:52 +0000
(10:54 -0400)
get_major() opens /proc/devices to get the openvswitch major number
but never closes the FD.
lib/dpif-linux.c
patch
|
blob
|
history
diff --git
a/lib/dpif-linux.c
b/lib/dpif-linux.c
index 4c34325651fdd6efef0594b876ebb9699324d5c9..1eaba744903b9357b5b7cb15b0f7933568554ca3 100644
(file)
--- a/
lib/dpif-linux.c
+++ b/
lib/dpif-linux.c
@@
-677,6
+677,8
@@
get_major(const char *target)
}
}
+ fclose(file);
+
VLOG_ERR("%s: %s major not found (is the module loaded?)", fn, target);
return -ENODEV;
}