Hi, On Tue, Mar 22, 2005 at 07:00:15PM +0530, Manoj Kumar wrote: > libpcap does not have "exit()" and libc "exit()" cannot release the > memory allocated in heap.Only "free()" can release memmory from heap. > Memory allocated via "malloc" is accounted in heap section of process > memory, and "pcap_complie()" does "malloc". > Thus with "malloc" , "free" is necessary.
If the program ends (which is what exit() does), the operating system will ALWAYS clean up and return all memory. gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany [EMAIL PROTECTED] fax: +49-89-35655025 [EMAIL PROTECTED] - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.