freeaddrinfo

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

Syntax

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 RTX64 2013
Header Ws2tcpip.h
Library RtTcpip.lib