-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DHCP re-init leak #489
Comments
@ThomasNauwelaerts, this should be investigated. Could you reproduce this issue on a host (i.e. linux) environment? |
@jelledevleeschouwer , I'm not able to use a host environment. |
The leak is coming from the function pico_dhcp_server_add_negotiation(). I don't know if this is totally ok or not, but looking up the entries with the hwaddr and deleting the old entry solves the memleak, something like this: static void pico_dhcp_server_free_negotiation_hwaddr(struct pico_stack *S, struct pico_dhcp_hdr *hdr)
} |
oops, this one was for the DHCP server part, which is leaks too, I will try to find the client leak too... |
When the network connection is lost, the device must re-init the DHCP and request an ip to the DHCP server. When removing our ethernet cable from the device, than plugging it back in, we do 'pico_dhcp_initiate_negotiation' again. At that point +-400 bytes are leaking.
The text was updated successfully, but these errors were encountered: