The sctp_freeladdrs function frees resources allocated by the sctp_getladdrs function. It is called as follows :
#include <netinet/sctp.h>
void sctp_freeladdrs(struct sockaddr * addrs );
addrs is the pointer to the array of addresses returned by sctp_getladdrs .