dermesser / libsocket

The ultimate socket library for C and C++, supporting TCP, UDP and Unix sockets (DGRAM and STREAM) on Linux, FreeBSD, Solaris. See also my uvco library for a refreshed version!
https://borgac.net/~lbo/doc/libsocket/
Other
797 stars 195 forks source link

Fix memory leak in get_address_family #87

Closed TERESH1 closed 2 months ago

TERESH1 commented 2 months ago

The handle result is created at libinetsocket.c:924 by calling function getaddrinfo and lost

https://github.com/dermesser/libsocket/blob/fe5f78c997478a1915f44a494a50025bdc792698/C/inet/libinetsocket.c#L924-L943

Found with Svace