mbed-os/storage/blockdevice/source
Lingkai Dong 7ef9e6175f HeapBlockDevice: allocate with std::nothrow
Mbed OS does not enable C++ exceptions, so we should call `new` with
`std::nothrow` which returns a C-style NULL pointer when allocation
fails to allow error handling.

For consistency of style within the same file, this commit also
replaces `malloc()` and `free()` to `new (std::nothrow)` and `delete`.
2021-04-14 17:00:17 +01:00
..
BufferedBlockDevice.cpp Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
ChainingBlockDevice.cpp Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
ExhaustibleBlockDevice.cpp Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
FlashSimBlockDevice.cpp Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
HeapBlockDevice.cpp HeapBlockDevice: allocate with std::nothrow 2021-04-14 17:00:17 +01:00
MBRBlockDevice.cpp Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
ObservingBlockDevice.cpp Add SPDX identifier 2020-12-15 15:01:25 +00:00
ProfilingBlockDevice.cpp Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
ReadOnlyBlockDevice.cpp Add SPDX identifier 2020-12-15 15:01:25 +00:00
SFDP.cpp Update include paths to SFDP.h 2020-11-26 17:31:31 +00:00
SlicingBlockDevice.cpp Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00