dpif-linux: Fix file descriptor leak.
[sliver-openvswitch.git] / lib / dpif-linux.c
index 2bf329f..9a72313 100644 (file)
@@ -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;
 }