mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
remove (std::nothrow) where nullptr case is not handled
remove legacy new management
This commit is contained in:
@ -116,9 +116,7 @@ bool LLMNRResponder::_restart() {
|
||||
if (igmp_joingroup(IP4_ADDR_ANY4, llmnr) != ERR_OK)
|
||||
return false;
|
||||
|
||||
_conn = new (std::nothrow) UdpContext;
|
||||
if (!_conn)
|
||||
return false;
|
||||
_conn = new UdpContext;
|
||||
_conn->ref();
|
||||
|
||||
if (!_conn->listen(IP_ADDR_ANY, LLMNR_PORT))
|
||||
|
Reference in New Issue
Block a user