diff --git a/modules/pico_ipv4.c b/modules/pico_ipv4.c index 6926e3d52..9cd0f10cf 100644 --- a/modules/pico_ipv4.c +++ b/modules/pico_ipv4.c @@ -1307,7 +1307,7 @@ int pico_ipv4_link_del(struct pico_device *dev, struct pico_ip4 address) PICO_FREE(g); } } while(0); - pico_free(found->MCASTGroups); + PICO_FREE(found->MCASTGroups); #endif pico_ipv4_cleanup_routes(found);