The King’s Face E21 450p LIMO

Original Post: The Kings Face E21 450p LIMO

getaddrinfo memory leak

I have this code for getting information about IPv4 address:

struct addrinfo hints, *info = NULL;
char addr4[INET_ADDRSTRLEN];

memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_STREAM;
hints.ai_family = AF_INET;

if (!getaddrinfo(argv[hostPara], NULL, &hints, &info)) {
    inet_ntop(AF_INET, &((const sockaddr_in *)info->ai_addr)->sin_addr, addr4, INET_ADDRSTRLEN);
}
if (info != NULL) {
    freeaddrinfo(info);
}

but if I tested argv[hostPara] is “www.google.com” I am getting this from valgrind:

==3632== 168 bytes in 1 blocks are still reachable in loss record 1 of 1
==3632==    at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3632==    by 0x524B5B8: make_request (check_pf.c:249)
==3632==    by 0x524BA53: __check_pf (check_pf.c:342)
==3632==    by 0x5201134: getaddrinfo (getaddrinfo.c:2458)
==3632==    by 0x40186B: main (trace.cc:214)

and if argv[hostPara] is "www.ubuntu.com" there are no memory leaks. What is this magic behaviour?

Sarissa – Demo 1987

Category: Music
Seeds: 0
Leechers: 0
Size: 76 MB

More info at TorrentFunk.com

SolidCAM 2015 SP1 HF1


SolidCAM 2015 SP1 HF1 | 5.7 Gb

Languages: Chinese Simplified, Chinese Traditional, Czech, Danish, Dutch, English, French, German, Hebrew, Hungarian,

Italian, Japanese,Korean, Polish, Portuguese, Russian, Spanish, Turkish



SolidCAM Inc., a world leader in advanced tool path generation technology (CAM) running directly inside SolidWorks, has released the HF1 of SolidCAM 2015 SP1. Empowered with the fastest Toolpaths in the business, SolidCAM is the best Manufacturing Suite for easiest, fastest, most efficient and profitable CNC-Programming done directly inside SolidWorks.