forked from espressif/esp-modbus
Bugfix/freemodbus fix dereferencing to freed element issue
This commit is contained in:
1 parent
8370c9e962
commit
d42604ab82
3 files changed
+6
-2
No files matched your search
@@ -429,7 +429,7 @@ static void master_destroy_slave_list(char** table, size_t ip_table_size)
|
||||
{
|
||||
#if CONFIG_MB_MDNS_IP_RESOLVER
|
||||
slave_addr_entry_t *it;
|
||||
LIST_FOREACH(it, &slave_addr_list, entries) {
|
||||
while ((it = LIST_FIRST(&slave_addr_list))) {
|
||||
LIST_REMOVE(it, entries);
|
||||
free(it);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user