libmisc/rtems-fdt: close() file 'bf'

close() file 'bf' to avoid leaking descriptor.

CID 1437645: Resource leak in rtems_fdt_load().

Closes #4297
This commit is contained in:
Ryan Long
2021-12-17 10:27:27 -06:00
committed by Joel Sherrill
parent 60cec828e7
commit 98ab69323e
+1
View File
@@ -611,6 +611,7 @@ rtems_fdt_load (const char* filename, rtems_fdt_handle* handle)
return fe;
}
close (bf);
return 0;
}