[Interest] Possible memory leak.

Bill Crocker william.crocker at analog.com
Tue Jun 18 14:37:18 CEST 2013


Qt Enthusiasts:

I have written a server app with Qt (4.7.1) and the image size grows over time.
Valgrind found this.
Are we missing a call to freeaddrinfo somewhere?

Bill

-----------------------------

==30933== 595 (196 direct, 399 indirect) bytes in 7 blocks are definitely lost 
in loss record 386 of 399
==30933==    at 0x507EEC2: calloc (vg_replace_malloc.c:418)
==30933==    by 0xF3A99ED: ??? (in /lib/libnss_ldap-2.5.so)
==30933==    by 0xF384CB6: ??? (in /lib/libnss_ldap-2.5.so)
==30933==    by 0xF386B60: ??? (in /lib/libnss_ldap-2.5.so)
==30933==    by 0xF37777A: ??? (in /lib/libnss_ldap-2.5.so)
==30933==    by 0xF376BCB: ??? (in /lib/libnss_ldap-2.5.so)
==30933==    by 0xF37750B: _nss_ldap_search_s (in /lib/libnss_ldap-2.5.so)
==30933==    by 0xF3783D9: _nss_ldap_getbyname (in /lib/libnss_ldap-2.5.so)
==30933==    by 0xF37B621: _nss_ldap_gethostbyname2_r (in /lib/libnss_ldap-2.5.so)
==30933==    by 0x5D9468: gaih_inet (in /lib/libc-2.5.so)
==30933==    by 0x5DAAE2: getaddrinfo (in /lib/libc-2.5.so)
==30933==    by 0x793EAA3: QHostInfoAgent::fromName(QString const&) 
(qhostinfo_unix.cpp:219)




More information about the Interest mailing list