[PATCH v2 2/3] libmisc/rtems-fdt: close() file 'bf' to avoid leaking descriptor
Harrison Edward Gerber
gerberhe11 at gmail.com
Tue Jun 29 21:11:51 UTC 2021
See Also CID 1437645
Closes #4297
---
cpukit/libmisc/rtems-fdt/rtems-fdt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cpukit/libmisc/rtems-fdt/rtems-fdt.c b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
index bfbc6102a2..5580d415e2 100644
--- a/cpukit/libmisc/rtems-fdt/rtems-fdt.c
+++ b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
@@ -611,6 +611,7 @@ rtems_fdt_load (const char* filename, rtems_fdt_handle* handle)
return fe;
}
+ close (bf);
return 0;
}
--
2.25.1
More information about the devel
mailing list