Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WiFiScan] Allow allocation in _scanDone() to fail and prevent memory…
… leak (#10335) * [WiFiScan] Allow allocation to fail and prevent memory leak When there are many AP's seen during a scan, the allocation of `_scanResult` may fail. Thus add `(std::nothrow)` to the `new` call. Also it is possible the array was still present before allocating a new one. * [WiFiScan] Use nullptr instead of 0 As suggested by @me-no-dev
- Loading branch information