mirror of https://github.com/ARMmbed/mbed-os.git
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`. |
||
|---|---|---|
| .. | ||
| blockdevice | ||
| docs | ||
| filesystem | ||
| kvstore | ||
| platform | ||
| CMakeLists.txt | ||