Updated: April 19, 2023 |
Free dynamic memory allocated by if_nameindex()
#include <net/if.h> void if_freenameindex( struct if_nameindex * ptr );
The if_freenameindex() function frees the dynamic memory that you allocated by calling if_nameindex().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |