Dear All, In sockets.c, there are two semaphores that are created on first invocation, that are never destroyed - these are socksem and selectsem, created in alloc_socket() and event_callback() respectively. If I want to completely free all heap memory taken by the stack, these sems need to be destroyed as semaphore creation allocates memory on my OS.
The question is, where is it safe for them to be destroyed? My hunch is that it would be OK at the end of lwip_close(), immediately before the return statement. Does anyone have any views on this? Many thanks in anticipation, Kind regards, Clive Wilson _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
