freeaddrinfo

freeaddrinfo is used to free the pointer to the structure addrinfo returned by a call to getaddrinfo.

Syntax

Copy
void freeaddrinfo(
    struct addrinfo *ai
);

Parameters

ai

A pointer returned by getaddrinfo.

Return Value

None

Remarks

freeaddrinfo must be called when the application finishes using the pointer or a memory leak will occur.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Ws2tcpip.h RtTcpipApi.lib