sstaub / Ethernet3

Ethernet library for Arduino and Ethernetshield2 / WIZ550io / WIZ850io / USR-ES1 with Wiznet W5500 chip
Other
82 stars 33 forks source link

Fixed memory leak on repeated calls to 'EthernetClass::begin' using dhcp #49

Closed LeedanJohnson closed 2 years ago

LeedanJohnson commented 2 years ago

Existing code allocated a new DhcpClass() for every call to EthernetClass::begin when dhcp is being used. This change adds a check to only allocate a new DhcpClass on the first call.

sstaub commented 2 years ago

Thank you