diff options
author | Tetsuo NAKAGAWA <nakagawa@mxc.nes.nec.co.jp> | 2010-03-25 10:54:15 -0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2010-03-25 11:24:23 -0400 |
commit | 6dc6ff914570fcbe770ed5a5e529229142c5b9c1 (patch) | |
tree | 1bef29f9f0bf49d409e86d08f15df4d6c91e1093 | |
parent | 0367f1e40e05c85d67c516939265ce4fe8639be3 (diff) | |
download | openvswitch-openflow-1.0.tar.gz |
dpif-linux: Fix file descriptor leak.openflow-1.0
get_major() opens /proc/devices to get the openvswitch major number
but never closes the FD.
-rw-r--r-- | lib/dpif-linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index 2bf329f45..9a7231387 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -661,6 +661,8 @@ get_major(const char *target) } } + fclose(file); + VLOG_ERR("%s: %s major not found (is the module loaded?)", fn, target); return -ENODEV; } |