Package: whois Version: 4.7.5 I have been modifying this package and discovered that there is a small memory leak. Here is the relevant portion of the valgrind report.
==4375== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==4375== malloc/free: in use at exit: 468 bytes in 5 blocks. ==4375== malloc/free: 112 allocs, 107 frees, 9,543 bytes allocated. ==4375== For counts of detected errors, rerun with: -v ==4375== searching for pointers to 5 not-freed blocks. ==4375== checked 52,348 bytes. ==4375== ==4375== 2 bytes in 1 blocks are definitely lost in loss record 1 of 5 ==4375== at 0x40051F9: malloc (vg_replace_malloc.c:149) ==4375== by 0xA668A0: strdup (in /lib/libc-2.4.so) ==4375== by 0x804A41F: handle_query (in /home/ssanders/Sandbox/whois- 4.7.5/whois) ==4375== by 0x804A96D: main (in /home/ssanders/Sandbox/whois-4.7.5/whois) ==4375== ==4375== ==4375== 28 bytes in 1 blocks are definitely lost in loss record 3 of 5 ==4375== at 0x40051F9: malloc (vg_replace_malloc.c:149) ==4375== by 0x80498AB: query_crsnic (in /home/ssanders/Sandbox/whois- 4.7.5/whois) ==4375== by 0x804A2DA: handle_query (in /home/ssanders/Sandbox/whois- 4.7.5/whois) ==4375== by 0x804A96D: main (in /home/ssanders/Sandbox/whois-4.7.5/whois) ==4375== ==4375== ==4375== 77 bytes in 1 blocks are definitely lost in loss record 4 of 5 ==4375== at 0x40051F9: malloc (vg_replace_malloc.c:149) ==4375== by 0x8049C4E: queryformat (in /home/ssanders/Sandbox/whois-4.7.5 /whois) ==4375== by 0x804A2FC: handle_query (in /home/ssanders/Sandbox/whois- 4.7.5/whois) ==4375== by 0x804A96D: main (in /home/ssanders/Sandbox/whois-4.7.5/whois) ==4375== ==4375== LEAK SUMMARY: ==4375== definitely lost: 107 bytes in 3 blocks. ==4375== possibly lost: 0 bytes in 0 blocks. ==4375== still reachable: 361 bytes in 2 blocks. ==4375== suppressed: 0 bytes in 0 blocks. ==4375== Reachable blocks (those to which a pointer was found) are not shown. This is verified on version 4.7.20 also, and is not platform specific. I will report further if I discover the source of these leaks. Scott

