microsoft / devkit-sdk

Arduino library and package for the MXChip IoT DevKit
https://aka.ms/devkit
MIT License
68 stars 57 forks source link

Fix memory leak in /AZ3166/src/libraries/WiFi/src/AZ3166WiFiUdp.cpp #957

Closed lirenhe closed 5 years ago

lirenhe commented 5 years ago

Multiple call of int WiFiUDP::beginPacket(IPAddress ip, unsigned short port) would cause SocketAddress initialized multiple times and this would cause memory leak.