HI, I was learning how to go about writting sniffer using libpcap. For the reason i was going through code of tcpdump version 3.8.3 code (which indeed helped me alot), and i think there is some memory leak in tcpdump when used with filters. As tcpdump uses 'pcap_compile()' , which eventually does a malloc. but tcpdump never uses 'pcap_freecode()' which is supposed to free the memory allocated in 'pcap_compile()' .
If tcpdump code has taken care of the malloc in 'pcap_compile()' by some other method, can someone help me out in this case. manoj - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.