[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #10358] dhcp_start : save dhcp memory type flag.
From: |
Shawn Silverman |
Subject: |
[lwip-devel] [patch #10358] dhcp_start : save dhcp memory type flag. |
Date: |
Tue, 13 Jun 2023 17:34:49 -0400 (EDT) |
Follow-up Comment #1, patch #10358 (project lwip):
[comment #0 original submission:]
> dhcp_start reset all dhcp flags, so a statically allocated struct dhcp which
was inited by dhcp_set_struct will try to release its memory in dhcp_cleanup,
and that is incorrect.
dhcp_cleanup() isn't supposed to be called if using dhcp_set_struct(). See the
dhcp_cleanup() docs in dhcp.c:
* ATTENTION: Only use this when not using dhcp_set_struct() to allocate the
* struct dhcp since the memory is passed back to the heap.
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/patch/?10358>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/