[ovs-dev] fd leak in get_major()
Tetsuo NAKAGAWA
nakagawa at mxc.nes.nec.co.jp
Thu Mar 25 05:57:49 UTC 2010
Hi.
I was reading source code of Open vSwitch, and found
following defect.
diff -ru ./openvswitch-master-20100325.org/lib/dpif-linux.c ./openvswitch-master-20100325/lib/dpif-linux.c
--- ./openvswitch-master-20100325.org/lib/dpif-linux.c 2010-03-25 08:56:28.000000000 +0900
+++ ./openvswitch-master-20100325/lib/dpif-linux.c 2010-03-25 14:45:20.000000000 +0900
@@ -677,6 +677,8 @@
}
}
+ fclose(file);
+
VLOG_ERR("%s: %s major not found (is the module loaded?)", fn, target);
return -ENODEV;
}
There is also same defect in openflow-1.0 branch.
Best regards,
--- Tetsuo NAKAGAWA
More information about the dev
mailing list