1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

replace new by new (std::nothrow), remove arduino_new

This commit is contained in:
david gauchard
2020-08-17 18:15:45 +02:00
parent 5b3d290de8
commit 6925982284
45 changed files with 207 additions and 167 deletions

View File

@ -116,7 +116,9 @@ bool LLMNRResponder::_restart() {
if (igmp_joingroup(IP4_ADDR_ANY4, llmnr) != ERR_OK)
return false;
_conn = new UdpContext;
_conn = new (std::nothrow) UdpContext;
if (!_conn)
return false;
_conn->ref();
if (!_conn->listen(IP_ADDR_ANY, LLMNR_PORT))